I want to run my Webpage UI testing in firefox browser in android device, for this i need to get firefox driver, so that using that driver i can perform certain actions in the webpage. In my case, initially i am able to open the firefox browser by starting an intent using the following command,
/platform-tools/adb shell am start -a android.intent.action.MAIN -n org.mozilla.firefox/.App
after this, i used the following lines of code to get the webdriver, but i am unable to get the driver instance for this opened browser.
DesiredCapabilities capability = DesiredCapabilities.firefox();
capability.setBrowserName("firefox");
capability.setCapability("Browser", "firefox"); capability.setCapability(CapabilityType.BROWSER_NAME, "firefox");
wd = new RemoteWebDriver(u, capability);
Someone please help me out of this. Thanks in advance.