Example usage for org.openqa.selenium.interactions.touch LongPressAction perform

List of usage examples for org.openqa.selenium.interactions.touch LongPressAction perform

Introduction

In this page you can find the example usage for org.openqa.selenium.interactions.touch LongPressAction perform.

Prototype

@Override
    public void perform() 

Source Link

Usage

From source file:io.selendroid.webviewdrivertests.touch.TouchLongPressTest.java

License:Apache License

@Test
public void testCanLongPress() {
    LongPressAction longPress = new LongPressAction(mockTouch, locatableStub);
    longPress.perform();

    verify(mockTouch).longPress(mockCoordinates);
    verifyNoMoreInteractions(mockTouch);
    verifyZeroInteractions(mockCoordinates);
}