Example usage for org.openqa.selenium.remote DriverCommand IMPLICITLY_WAIT

List of usage examples for org.openqa.selenium.remote DriverCommand IMPLICITLY_WAIT

Introduction

In this page you can find the example usage for org.openqa.selenium.remote DriverCommand IMPLICITLY_WAIT.

Prototype

String IMPLICITLY_WAIT

To view the source code for org.openqa.selenium.remote DriverCommand IMPLICITLY_WAIT.

Click Source Link

Usage

From source file:com.smash.revolance.ui.materials.mock.webdriver.handler.JSonWireController.java

License:Open Source License

@POST
@Path("/session/{sessionId}/timeouts/implicit_wait")
@Consumes(MediaType.APPLICATION_JSON)/*from w ww  . ja v a 2s. c o  m*/
@Produces(MediaType.APPLICATION_JSON)
public Response setTimeoutsImplicitWait(@PathParam("sessionId") String sessionId) {
    Command cmd = new Command(sessionId, DriverCommand.IMPLICITLY_WAIT, "POST");
    CommandResult cmdResult = new CommandExecutor(cmd, getPath()).execute();
    return new CommandResponse(cmdResult).buildResponse();
}