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

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

Introduction

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

Prototype

String SET_TIMEOUT

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

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")
@Consumes(MediaType.APPLICATION_JSON)//from ww w. ja  va2 s  .co  m
@Produces(MediaType.APPLICATION_JSON)
public Response setTimeouts(@PathParam("sessionId") String sessionId) {
    Command cmd = new Command(sessionId, DriverCommand.SET_TIMEOUT, "POST");
    CommandResult cmdResult = new CommandExecutor(cmd, getPath()).execute();
    return new CommandResponse(cmdResult).buildResponse();
}

From source file:galen.api.server.GalenCommandExecutor.java

License:Apache License

/**
 * As it turns out that Java and Python implementations differs in the command names, this method is to align naming
 * to conventions used in Java {@link org.openqa.selenium.remote.RemoteWebDriver}
 *///w  w w.j  a  v  a  2s. c o  m
private String handleCommandNameExceptions(String name) {
    if (name.equals("windowMaximize")) {
        name = DriverCommand.MAXIMIZE_WINDOW;
    } else if (name.equals("setTimeouts")) {
        name = DriverCommand.SET_TIMEOUT;
    }
    return name;
}