boolean isLocked = driver.isDeviceLocked(); Read More
Categories : Uncategorized
Posted by Sridatta Pani
No Comments
Have Appium automatically determine which permissions your app requires and grant them to the app on install. Defaults to false.If noReset is true, this capability doesn't work. Read More
Categories : Uncategorized
Posted by Ahmad Sayeed
No Comments
Accept all iOS alerts automatically if they pop up. This includes privacy access permission alerts (e.g., location, contacts, photos). Default is false. Read More
Categories : Uncategorized
Posted by Sridatta Pani
No Comments
Wait wait = new FluentWait(appiumDriver) .withTimeout(10, TimeUnit.SECONDS) .pollingEvery(250, TimeUnit.MILLISECONDS) .ignoring(NoSuchElementException.class) .ignoring(TimeoutException.class); wait.until(ExpectedConditions.visibilityOfElementLocated (By.id("text1"))); Read More
Categories : Uncategorized
Posted by Shibu Panda
No Comments
Duration time = null; ((AndroidDriver) driver).lockDevice(time.ofMinutes(3)); Read More
Categories : Uncategorized
Posted by Sridatta Pani
No Comments
Cookie cookie1 = driver.manage().getCookieNamed("1P_JAR"); Map jsonObject = cookie1.toJson(); System.out.println(jsonObject.toString()); Read More
Categories : Uncategorized
Posted by Shah Nawaz
No Comments
Cookie cookie = driver.manage().getCookieNamed("1P_JAR"); System.out.println("Name : " + cookie.getName()); System.out.println("Value : " + cookie.getValue()); System.out.println("Domain : " + cookie.getDomain()); System.out.println("Path : " + cookie.getPath()); System.out.println("Expiry : " + cookie.getExpiry()); System.out.println("Secure : " + cookie.isSecure()); System.out.println("isHttpOnly Read More
Categories : Uncategorized
Posted by Ahmad Sayeed
No Comments
Set cookies = driver.manage().getCookies(); for(Cookie cookie: cookies) { System.out.println("Name : " + cookie.getName()); System.out.println("Value : " + cookie.getValue()); System.out.println("Domain : " + cookie.getDomain()); System.out.println("Path : " + cookie.getPath()); System.out.println("Expiry : " + cookie.getExpiry()); System.out.println("Secure : Read More
Categories : Uncategorized
Posted by Ahmad Sayeed
No Comments
How to take the screenshot from UIAutomator instead of chromedriver? This might be of use to you if you are interetsed to see whole picture of device. What you get with chromedriver screenshot is only Read More
Categories : Uncategorized
Posted by Ahmad Sayeed
No Comments
public boolean Method_isCurrentOrientationPortrait(AppiumDriver driver) { String ort = driver.getOrientation().name(); ScreenOrientation orientation = ScreenOrientation.valueOf(ort); if (orientation == ScreenOrientation.PORTRAIT) { return true; } else { return false; } } Read More
Categories : Uncategorized
Posted by Ahmad Sayeed
No Comments