Problem:
What i have done so far:
What is feel is,its not able to find the element on web view,do we need to switch from mobile view to web view?
If so , how to do it?
Here we go :
MobileElement makeTextLocartor = (MobileElement) wd
.findElementByAndroidUIAutomator("new UiSelector().description(\"<text>\")");
makeTextLocartor.click();
MobileElement TextLocartor = (MobileElement) wd
.findElementByAndroidUIAutomator("new UiSelector().text(\"<text>\")");
makeTextLocartor.click();
wd.findElementById("android:id/button1").click();
WebElement findElementById = wd.findElementById("com.android.chrome:id/url_bar");
String text = findElementById.getText();
System.out.println(text);
Above code will help you to get the chrome address box text.