Example usage for org.openqa.selenium.interactions TouchScreen scroll

List of usage examples for org.openqa.selenium.interactions TouchScreen scroll

Introduction

In this page you can find the example usage for org.openqa.selenium.interactions TouchScreen scroll.

Prototype

void scroll(Coordinates where, int xOffset, int yOffset);

Source Link

Document

Creates a scroll gesture that starts on a particular screen location.

Usage

From source file:org.specrunner.webdriver.actions.touch.PluginScrollOff.java

License:Open Source License

@Override
protected void doEnd(IContext context, IResultSet result, WebDriver client, TouchScreen touch)
        throws PluginException {
    touch.scroll(getCoordinates(), getXoffset(), getYoffset());
    result.addResult(Success.INSTANCE, context.peek());
}