- driver.rotate(landscapeLeftRotation);
- assertEquals(driver.rotation(), landscapeLeftRotation);
- }
-
- @Test public void testPortraitUpsideDown() {
- DeviceRotation landscapeRightRotation = new DeviceRotation(0, 0, 180);
- driver.rotate(landscapeRightRotation);
- assertEquals(driver.rotation(), landscapeRightRotation);
- }
-
- @Test public void testToastMSGIsDisplayed() {
- final WebDriverWait wait = new WebDriverWait(driver, 10);
- Activity activity = new Activity("io.appium.android.apis", ".view.PopupMenu1");
- driver.startActivity(activity);
-
- MobileElement popUpElement = driver.findElement(MobileBy.AccessibilityId("Make a Popup!"));
- popUpElement.click();
- driver.findElement(By.xpath(".//*[@text='Search']")).click();
- assertNotNull(wait.until(ExpectedConditions.presenceOfElementLocated(
- By.xpath("//*[@text='Clicked popup menu item Search']"))));
-