My code but it is not working:
MobileElement el = (MobileElement) driver.findElementById("jpb.com.upisimulator:id/action_bar");
MobileElement el2 = el.findElementByName("Open navigation drawer");
el2.click();
My code but it is not working:
MobileElement el = (MobileElement) driver.findElementById("jpb.com.upisimulator:id/action_bar");
MobileElement el2 = el.findElementByName("Open navigation drawer");
el2.click();
You have to use content description for that.