How to open & access navigation side drawer in appium ? I am using java language for automation in appium

614 views Asked by At

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();
1

There are 1 answers

0
Sajid Zeb On

You have to use content description for that.

driver.findElementByAccessibilityId("Open navigation drawer").click();