Interface ExecuteMethod
- All Known Implementing Classes:
RemoteExecuteMethod
public interface ExecuteMethod
An encapsulation of
RemoteWebDriver.executeScript(String, Object...).-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> TExecute the given command without parameters and cast the returned value to T.@Nullable ObjectExecute the given command on the remote webdriver server.default <T> TExecute the given command and return the default value if the command return null.default <T> TExecute the given command and cast the returned value to T.
-
Method Details
-
execute
Execute the given command on the remote webdriver server. Any exceptions will be thrown by the underlying execute method.- Parameters:
commandName- The remote command to executeparameters- The parameters to execute that command with- Returns:
- The result of
Response.getValue().
-
execute
-
executeAs
-
execute
Execute the given command without parameters and cast the returned value to T.- Returns:
- non-nullable value of type T.
-