Hi Jonathan,
I have an android 4.4 tablet and I am trying to run my appium tests on the android stock browser. I am running on a real device
1. I have given the capabilities as you have mentioned
capabilities.setCapability("platformName",
"Android");
capabilities.setCapability("platformVersion", "4.4");
capabilities.setCapability("deviceName", "Android");
capabilities.setCapability("browserName", "Browser");
However, I am getting the following error although the android stock browser is present on the device. It came along with the device, I did not install it
error: Chromedriver create
session did not work. Status was 200 and body was {"s
essionId":"7cec072032480621e154fb955f360919","status":13,"value":{"message":"unk
nown error: com.android.browser is not installed on device
3204556b707cb005\n (
Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1
x86_64)"}}
info: Cleaning up appium session
When I tried to find the app-package, the app-package is actually com.sec.android.app.sbrowser and com.android.browser is not present on the device because of which it is failing
2. I tried launching the browser app directly using the following capabilities
capabilities.setCapability("app-package",
"com.sec.android.app.sbrowser");
capabilities.setCapability("app-activity",
".SBrowserMainActivity");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("platformVersion", "4.4");
capabilities.setCapability("deviceName", "Android");
However I am getting the following error
debug: Request received
with params: {"ms":60000,"type":"page load"}
info: Responding to client with error:
{"status":9,"value":{"message":"The reque
sted resource could not be found, or a request was received using an HTTP
method
that is not supported by the mapped resource. (Original error: Invalid
timeout
'page load')","origValue":"Invalid timeout 'page
load'"},"sessionId":"c3c49665-7
995-401d-a9ac-2a8f1e7e39ac"}
POST /wd/hub/session/c3c49665-7995-401d-a9ac-2a8f1e7e39ac/timeouts 500 3ms -
337
b
Can you please let me know how I can resolve these errors and run my automation on the android stock browser
Thanks!
Marina