Examples of TouchActions


Examples of org.openqa.selenium.interactions.touch.TouchActions

* Tests the basic scroll operations on touch enabled devices..
*/
public class TouchScrollTest extends BaseSeleniumTest {

  private TouchActions getBuilder(WebDriver driver) {
    return new TouchActions(driver);
  }
View Full Code Here

Examples of org.openqa.selenium.interactions.touch.TouchActions

* Tests single tap actions on touch enabled devices.
*/
public class TouchSingleTapTest extends BaseSeleniumTest {

  private TouchActions getBuilder(WebDriver driver) {
    return new TouchActions(driver);
  }
View Full Code Here

Examples of org.openqa.selenium.interactions.touch.TouchActions

  private static int speedFast(int distance) {
    return Math.abs(distance * 3);
  }

  private TouchActions getBuilder(WebDriver driver) {
    return new TouchActions(driver);
  }
View Full Code Here

Examples of org.openqa.selenium.interactions.touch.TouchActions

* Tests the basic double tap operations.
*/
public class TouchDoubleTapTest extends BaseSeleniumTest {

  private TouchActions getBuilder(WebDriver driver) {
    return new TouchActions(driver);
  }
View Full Code Here

Examples of org.openqa.selenium.interactions.touch.TouchActions

        if (this.getBrowserType() == BrowserType.IPAD) {
            yOffsetByDevice = yOffset * 2;
        }
        if (driver instanceof HasTouchScreen) {
            Action flick = (new TouchActions(driver)).flick(element, xOffset, yOffsetByDevice, speed).build();
            flick.perform();
        } else {
            Action flick = (new Actions(driver)).dragAndDropBy(element, xOffset, yOffsetByDevice).build();
            flick.perform();
        }
View Full Code Here

Examples of org.openqa.selenium.interactions.touch.TouchActions

        if (this.getBrowserType() == BrowserType.IPAD) {
            yOffsetByDevice = yOffset * 2;
        }

        Action flick = (new TouchActions(driver)).flick(xOffset, yOffsetByDevice).build();
        flick.perform();
    }
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.