public class ChromeHttpCommandExecutor
extends org.openqa.selenium.remote.HttpCommandExecutor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELETE_NETWORK_CONDITIONS
"deleteNetworkConditions"
|
static java.lang.String |
EXECUTE_CDP_COMMAND
"executeCdpCommand"
|
static java.lang.String |
GET_NETWORK_CONDITIONS
"getNetworkConditions"
|
static java.lang.String |
LAUNCH_APP
"launchApp"
|
static java.lang.String |
SET_NETWORK_CONDITIONS
"setNetworkConditions"
|
static java.lang.String |
URI_NETWORK_CONDITIONS
"network_conditions"
|
Constructor and Description |
---|
ChromeHttpCommandExecutor(java.net.URL addressOfRemoteServer) |
Modifier and Type | Method and Description |
---|---|
void |
defineAdditionalCommands()
NOTE: This MUST be called after the field 'commandCodec' has been initialized.
|
static boolean |
isRequired(org.openqa.selenium.remote.DesiredCapabilities capabilities)
If ChromeHttpCommandExecutor is needed to create RemoteWebDriver.
We check the capabilities, if it contains one of the keys in CHROME_COMMAND_NAME_TO_URL , then the ChromeHttpCommandExecutor is needed. |
public static final java.lang.String LAUNCH_APP
public static final java.lang.String GET_NETWORK_CONDITIONS
public static final java.lang.String SET_NETWORK_CONDITIONS
public static final java.lang.String DELETE_NETWORK_CONDITIONS
public static final java.lang.String EXECUTE_CDP_COMMAND
public static final java.lang.String URI_NETWORK_CONDITIONS
public ChromeHttpCommandExecutor(java.net.URL addressOfRemoteServer)
public void defineAdditionalCommands()
HttpCommandExecutor.defineCommand(String, CommandInfo)
will be called when executing 'newSession' (see HttpCommandExecutor.execute(org.openqa.selenium.remote.Command)
)CHROME_COMMAND_NAME_TO_URL
will be recognized.public static boolean isRequired(org.openqa.selenium.remote.DesiredCapabilities capabilities)
CHROME_COMMAND_NAME_TO_URL
, then the ChromeHttpCommandExecutor is needed.capabilities
- DesiredCapabilitiesCopyright © SAS Institute. All Rights Reserved.