Native browser Automation support on Android Devices

I have a requirement to automate the Native Browsers on Android Devices:
Samsung
HTC
Nexus etc
I could successfully automate the Native browser on Emulator with following capabilities:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“automationName”, “Appium”);
capabilities.setCapability(“deviceName”,“Emulator”);
capabilities.setCapability(“platformVersion”, “4.4”);
capabilities.setCapability(“browserName”, “Browser”);
driver = new AndroidDriver(new URL(baseTestCase.ExecutionMachineIP_Port), capabilities);

But not able to automate on Samsung and HTC. It says "Not able to find:
- com.android.browser"

  1. Can we tell Appium the package name of the native browser on Samsung and HTC? Because I see that the native browser package name on Samsung is com.sec.android.sbrowser/.SBrowserMainActivity instead of com.android.browser
  2. Another thing, on Nexus there is no native browser? Is’nt available on Google Play as well?

Need help on know the solution and expecting Appium to automate the Native browser on Samsung, HTC etc.

I am working on devices 4.4.x.

1 Like