Example usage for org.openqa.selenium.support.events.internal EventFiringTouch EventFiringTouch

List of usage examples for org.openqa.selenium.support.events.internal EventFiringTouch EventFiringTouch

Introduction

In this page you can find the example usage for org.openqa.selenium.support.events.internal EventFiringTouch EventFiringTouch.

Prototype

public EventFiringTouch(WebDriver driver, WebDriverEventListener dispatcher) 

Source Link

Usage

From source file:com.prototest.appdriver.EventFiringWebDriver.java

License:Apache License

public TouchScreen getTouch() {
    if (driver instanceof HasTouchScreen) {
        return new EventFiringTouch(driver, dispatcher);
    } else {//  w  ww  .ja v a2 s.  c  o m
        throw new UnsupportedOperationException(
                "Underlying driver does not implement advanced" + " user interactions yet.");
    }
}