Examples of IOSTouchScreen


Examples of org.uiautomation.ios.client.uiamodels.impl.augmenter.IOSTouchScreen

  @Test
  public void testPinchClose() {
    Point closeFrom = new Point(756, 612);
    Point closeTo = new Point(856, 612);

    IOSTouchScreen iosTouchScreen = IOSDriverAugmenter.augment(driver);
    iosTouchScreen.pinchCloseFromToForDuration(closeFrom, closeTo, 3);

    waitForElement(driver,
                   By.xpath("//UIAStaticText[contains(@name, 'scale: 0.011 - velocity: 0.000')]"),
                   6);
View Full Code Here

Examples of org.uiautomation.ios.client.uiamodels.impl.augmenter.IOSTouchScreen

  @Test
  public void testPinchOpen() {
    Point openFrom = new Point(856, 612);
    Point openTo = new Point(756, 612);

    IOSTouchScreen iosTouchScreen = IOSDriverAugmenter.augment(driver);
    iosTouchScreen.pinchOpenFromToForDuration(openFrom, openTo, 1);

    waitForElement(driver, By.xpath("//UIAStaticText[contains(@name, 'scale: 10.000')]"), 6);

    Assert.assertTrue(driver.findElementByXPath("//UIAStaticText[contains(@name, 'scale: 10.000')]")
                          .isDisplayed());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.