I tried this code in my app but it is not working for me …instead i have wriiten the below code
@Test(priority=3)
public void opendrawer() throws InterruptedException {
driver.findElement(By.id("com.policybazaar:id/action_bar_root"));
driver.swipe(150, 0, 635, 0, 3000);
driver.findElement(By.id("com.policybazaar:id/drawer")).wait(20000);
MobileElement Carj = (MobileElement)driver.findElementByAndroidUIAutomator("new UiSelector().text(\"Car Insurance\")");
Carj.click();
System.out.println("Swipe right");
this only swipes with the given coordinates value and exits but my menu drawer is still not opening . Can u please help me in this …
Thanks