@Override public TouchScreen getTouch() { setLastAction(); if ( webDriver instanceof HasTouchScreen ) return ((HasTouchScreen) webDriver).getTouch(); else return null; }
@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; }
@Override public Void call() throws Exception { TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch(); touchScreen.down(x, y); return null; }
@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; }
@Override public Void call() throws Exception { TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch(); touchScreen.up(x, y); return null; }
@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; }
@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; }
@Override public Void call() throws Exception { TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch(); touchScreen.move(x, y); return null; }
@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; }
@Override public TouchScreen getTouch() { return ((HasTouchScreen) driver).getTouch(); }
@Override public TouchScreen getTouch() { return this.touchScreen; }
@Override public TouchScreen getTouchScreen() { return new RemoteTouchScreen(getExecuteMethod()); }
public TouchScreen getTouch() { return touch; }
/** * {@inheritDoc} */ @Override public TouchScreen getTouch() { return touchScreen; }
TouchScreen getTouchScreen();