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

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

Introduction

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

Prototype

public LongPressAction(TouchScreen touchScreen, Locatable locationProvider) 

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();// w w  w . jav a 2s.co  m

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