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

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

Introduction

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

Prototype

void longPress(Coordinates where);

Source Link

Document

Allows the execution of long press gestures.

Usage

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

License:Open Source License

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