Example usage for org.openqa.selenium.interactions Mouse click

List of usage examples for org.openqa.selenium.interactions Mouse click

Introduction

In this page you can find the example usage for org.openqa.selenium.interactions Mouse click.

Prototype

void click(Coordinates where);

Source Link

Usage

From source file:org.jboss.arquillian.graphene.ftest.enricher.selenium.TestSeleniumResourceProvider.java

License:Open Source License

@Test
public void testMouse(@ArquillianResource Mouse mouse) {
    // when//ww  w. j a  va2  s  . c  om
    mouse.click(((Locatable) button).getCoordinates());
    // then
    assertEquals("Clicked", button.getAttribute("value"));
}

From source file:org.specrunner.webdriver.actions.input.mouse.PluginClickCoordinates.java

License:Open Source License

@Override
protected void doEnd(IContext context, IResultSet result, WebDriver client, HasInputDevices input, Mouse mouse)
        throws PluginException {
    mouse.click(getCoordinates());
    result.addResult(Success.INSTANCE, context.peek());
}