How to open chrome in incognito tab

时光怂恿深爱的人放手 提交于 2019-12-12 17:04:36

问题


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?


回答1:


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




回答2:


You can launch chrome in incognito mode with the -incognito flag. I am not sure if this will work through ADB, however.



来源:https://stackoverflow.com/questions/35198003/how-to-open-chrome-in-incognito-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!