public class AppiumCommandExecutor
extends org.openqa.selenium.remote.HttpCommandExecutor
| Constructor and Description |
|---|
AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
AppiumClientConfig appiumClientConfig) |
AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
org.openqa.selenium.remote.service.DriverService service) |
AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
org.openqa.selenium.remote.service.DriverService service,
AppiumClientConfig appiumClientConfig) |
AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
org.openqa.selenium.remote.service.DriverService service,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory) |
AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
org.openqa.selenium.remote.service.DriverService service,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory,
AppiumClientConfig appiumClientConfig)
Create an AppiumCommandExecutor instance.
|
AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
java.net.URL addressOfRemoteServer) |
AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
java.net.URL addressOfRemoteServer,
AppiumClientConfig appiumClientConfig) |
AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
java.net.URL addressOfRemoteServer,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.remote.Response |
execute(org.openqa.selenium.remote.Command command) |
protected java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> |
getAdditionalCommands() |
protected org.openqa.selenium.remote.http.HttpClient |
getClient() |
protected org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> |
getCommandCodec() |
protected <B> B |
getPrivateFieldValue(java.lang.Class<? extends org.openqa.selenium.remote.CommandExecutor> cls,
java.lang.String fieldName,
java.lang.Class<B> fieldType) |
protected void |
overrideServerUrl(java.net.URL serverUrl)
Override the http client in the HttpCommandExecutor class with a new http client instance with the given URL.
|
void |
refreshAdditionalCommands() |
void |
setCommandCodec(org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> newCodec) |
protected void |
setPrivateFieldValue(java.lang.Class<? extends org.openqa.selenium.remote.CommandExecutor> cls,
java.lang.String fieldName,
java.lang.Object newValue) |
void |
setResponseCodec(org.openqa.selenium.remote.ResponseCodec<org.openqa.selenium.remote.http.HttpResponse> codec) |
public AppiumCommandExecutor(@Nonnull
java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
@Nullable
org.openqa.selenium.remote.service.DriverService service,
@Nullable
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory,
@Nonnull
AppiumClientConfig appiumClientConfig)
additionalCommands - is the map of Appium commandsservice - take a look at DriverServicehttpClientFactory - take a look at HttpClient.FactoryappiumClientConfig - take a look at AppiumClientConfigpublic AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
org.openqa.selenium.remote.service.DriverService service,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
public AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
java.net.URL addressOfRemoteServer,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
public AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
AppiumClientConfig appiumClientConfig)
public AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
java.net.URL addressOfRemoteServer)
public AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
java.net.URL addressOfRemoteServer,
AppiumClientConfig appiumClientConfig)
public AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
org.openqa.selenium.remote.service.DriverService service)
public AppiumCommandExecutor(java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> additionalCommands,
org.openqa.selenium.remote.service.DriverService service,
AppiumClientConfig appiumClientConfig)
protected <B> B getPrivateFieldValue(java.lang.Class<? extends org.openqa.selenium.remote.CommandExecutor> cls,
java.lang.String fieldName,
java.lang.Class<B> fieldType)
protected void setPrivateFieldValue(java.lang.Class<? extends org.openqa.selenium.remote.CommandExecutor> cls,
java.lang.String fieldName,
java.lang.Object newValue)
protected java.util.Map<java.lang.String,org.openqa.selenium.remote.CommandInfo> getAdditionalCommands()
protected org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> getCommandCodec()
public void setCommandCodec(org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> newCodec)
public void setResponseCodec(org.openqa.selenium.remote.ResponseCodec<org.openqa.selenium.remote.http.HttpResponse> codec)
protected org.openqa.selenium.remote.http.HttpClient getClient()
protected void overrideServerUrl(java.net.URL serverUrl)
serverUrl - A url to override.public void refreshAdditionalCommands()
public org.openqa.selenium.remote.Response execute(org.openqa.selenium.remote.Command command)
throws org.openqa.selenium.WebDriverException
execute in interface org.openqa.selenium.remote.CommandExecutorexecute in class org.openqa.selenium.remote.HttpCommandExecutororg.openqa.selenium.WebDriverException