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

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

Introduction

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

Prototype

public EventFiringKeyboard(WebDriver driver, WebDriverEventListener dispatcher) 

Source Link

Usage

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

License:Apache License

public Keyboard getKeyboard() {
    if (driver instanceof HasInputDevices) {
        return new EventFiringKeyboard(driver, dispatcher);
    } else {/*  ww  w.j av a 2s.  c  o m*/
        throw new UnsupportedOperationException(
                "Underlying driver does not implement advanced" + " user interactions yet.");
    }
}