Example usage for org.openqa.selenium.interactions Keyboard releaseKey

List of usage examples for org.openqa.selenium.interactions Keyboard releaseKey

Introduction

In this page you can find the example usage for org.openqa.selenium.interactions Keyboard releaseKey.

Prototype

void releaseKey(CharSequence keyToRelease);

Source Link

Document

Release a key on the keyboard that isn't text.

Usage

From source file:org.specrunner.webdriver.actions.input.keyboard.PluginPressReleaseKeys.java

License:Open Source License

@Override
protected void doEnd(IContext context, IResultSet result, WebDriver client, HasInputDevices input,
        Keyboard keyboard) throws PluginException {
    Keys tmp = obtainKey();//  w ww.j a  va  2 s .  co  m
    keyboard.pressKey(tmp);
    keyboard.releaseKey(tmp);
    result.addResult(Success.INSTANCE, context.peek());
}

From source file:org.specrunner.webdriver.actions.input.keyboard.PluginReleaseKeys.java

License:Open Source License

@Override
protected void doEnd(IContext context, IResultSet result, WebDriver client, HasInputDevices input,
        Keyboard keyboard) throws PluginException {
    keyboard.releaseKey(obtainKey());
    result.addResult(Success.INSTANCE, context.peek());
}