Hi All,
I was trying to automate mobile web apps using chrome on android, but i could not able to click and send data on edit field element.
Here i can able to open the browser and get the url also, after that i could not able to click any elements on the page and changed context view NATIVE VIEW to WEBVIEW also.below is my code.
@Test
public void test() {
driver.get("https://www.xxxxxxxxx .com");
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
String ContextVaule = driver.getContext();
System.out.println(ContextVaule);
driver.context(ContextVaule);
MobileElement element = (MobileElement) driver.findElementByXPath("//*/android.widget.EditText[@content-desc='xxxxx']");
element.click();
}
we are using nexus 5 KitKat 4.4.4 device, chrome version 40.0.
Kindly help me where i am doing mistake in my code. thanks in advance.