Java 类org.openqa.selenium.interactions.TouchScreen 实例源码

项目:xframium-java    文件:DeviceWebDriver.java   
@Override
public TouchScreen getTouch()
{
    setLastAction();
    if ( webDriver instanceof HasTouchScreen )
        return ((HasTouchScreen) webDriver).getTouch();
    else
        return null;
}
项目:grid-refactor-remote-server    文件:SingleTapOnElement.java   
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();
  WebElement element = getKnownElements().get(elementId);
  Coordinates elementLocation = ((Locatable) element).getCoordinates();

  touchScreen.singleTap(elementLocation);

  return null;
}
项目:grid-refactor-remote-server    文件:Down.java   
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  touchScreen.down(x, y);

  return null;
}
项目:grid-refactor-remote-server    文件:Flick.java   
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  if (elementId != null) {
    WebElement element = getKnownElements().get(elementId);
    Coordinates elementLocation = ((Locatable) element).getCoordinates();
    touchScreen.flick(elementLocation, xOffset, yOffset, speed);
  } else {
    touchScreen.flick(xSpeed, ySpeed);
  }

  return null;
}
项目:grid-refactor-remote-server    文件:Up.java   
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  touchScreen.up(x, y);

  return null;
}
项目:grid-refactor-remote-server    文件:DoubleTapOnElement.java   
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();
  WebElement element = getKnownElements().get(elementId);
  Coordinates elementLocation = ((Locatable) element).getCoordinates();

  touchScreen.doubleTap(elementLocation);

  return null;
}
项目:grid-refactor-remote-server    文件:LongPressOnElement.java   
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();
  WebElement element = getKnownElements().get(elementId);
  Coordinates elementLocation = ((Locatable) element).getCoordinates();
  touchScreen.longPress(elementLocation);

  return null;
}
项目:grid-refactor-remote-server    文件:Move.java   
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  touchScreen.move(x, y);

  return null;
}
项目:grid-refactor-remote-server    文件:Scroll.java   
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  if (elementId != null) {
    WebElement element = getKnownElements().get(elementId);
    Coordinates elementLocation = ((Locatable) element).getCoordinates();
    touchScreen.scroll(elementLocation, xOffset, yOffset);
  } else {
    touchScreen.scroll(xOffset, yOffset);
  }
  return null;
}
项目:easytest    文件:DeviceWebDriver.java   
@Override
public TouchScreen getTouch() {
    return ((HasTouchScreen) driver).getTouch();
}
项目:domui    文件:MyChromeDriver.java   
@Override
public TouchScreen getTouch() {
    return this.touchScreen;
}
项目:qaf    文件:QAFExtendedWebDriver.java   
@Override
public TouchScreen getTouchScreen() {
    return new RemoteTouchScreen(getExecuteMethod());
}
项目:testdroid-appium-driver    文件:TestdroidAppiumDriver.java   
public TouchScreen getTouch() {
    return touch;
}
项目:testdroid-appium-driver    文件:TestdroidAppiumDriverAndroid.java   
public TouchScreen getTouch() {
    return touch;
}
项目:testdroid-appium-driver    文件:TestdroidAppiumDriverIos.java   
public TouchScreen getTouch() {
    return touch;
}
项目:candybean    文件:WebDriverInterface.java   
public TouchScreen getTouch() {
    return touch;
}
项目:candybean    文件:SugarAndroidTest.java   
public TouchScreen getTouch() {
    return touch;
}
项目:candybean    文件:AppiumAndroidTest.java   
public TouchScreen getTouch() {
    return touch;
}
项目:candybean    文件:EvernoteAndroidTest.java   
public TouchScreen getTouch() {
    return touch;
}
项目:candybean    文件:SugarAndroidTest.java   
public TouchScreen getTouch() {
    return touch;
}
项目:candybean    文件:AppiumIosTest.java   
public TouchScreen getTouch() {
    return touch;
}
项目:selendroid    文件:SelendroidDriver.java   
/**
 * {@inheritDoc}
 */
@Override
public TouchScreen getTouch() {
  return touchScreen;
}
项目:qaf    文件:QAFWebDriver.java   
TouchScreen getTouchScreen();