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(int xOffset, int yOffset);

Source Link

Document

Allows the view to be scrolled by an x and y offset.

Usage

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

License:Open Source License

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