Search code examples
androidgoogle-chromeadbgoogle-chrome-appappium

How to open chrome in incognito tab


I have a scenario open a web link in incognito tab in chrome browser. I am using adb command to open chrome and navigate to specific URL i.e adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main -d weburl .

Is there any way to open link directly in incognito mode through adb?


Solution

  • I could not find any way using adb commands. But using ChromeOptions it is possible if we add "--incognito" argument.