I want to start Stock Browser on Android using following caps:
…
capabilities.setCapability(“appPackage”, “com.android.browser”);
capabilities.setCapability(“appActivity”, “com.android.browser.BrowserActivity”);
…
Why appium starts Chrome browser in chromedriver mode? As Chrome has another package and running chromedriver starts by other capability.
Adb command acts good in that case and launch stock browser: adb shell am start -n com.android.browser/.BrowserActivity.
The problem with that case some devices stuck after launching Native Browser, eg Samsung Galaxy Tab 3.10, Samsung Note 2, etc. with error: Did not get session redirect from chromedriver.
I would like to workaround that problem by launching app in native mode, but seems appium do trick there.
AFAIK stock browser will only work from API 19+ (4.4+).
I haven’t tried setting up an older android version as it is not the focus of my work atm, sorry.
I didnt tried in my real device, following link may help. The culprit is ChromeDriver version. I am not sure they still need chromedriver to launch Stock Browser.
OK, but i don’t mind about Chromedriver in Native browser. And I want to cover Native browser too.
I want to use it like Native app.
How i can to workaround chromedriver start? Can i launch appium without specific app and then start app by driver.startActivity? Smth else?