Package io.appium.java_client
Interface ExecuteCDPCommand
-
- All Superinterfaces:
ExecutesMethod
- All Known Implementing Classes:
AndroidDriver
,FlutterAndroidDriver
public interface ExecuteCDPCommand extends ExecutesMethod
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Map<java.lang.String,java.lang.Object>
executeCdpCommand(java.lang.String command)
Allows to execute ChromeDevProtocol commands against Android Chrome browser session without parameters.default java.util.Map<java.lang.String,java.lang.Object>
executeCdpCommand(java.lang.String command, java.util.Map<java.lang.String,java.lang.Object> params)
Allows to execute ChromeDevProtocol commands against Android Chrome browser session.-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
Method Detail
-
executeCdpCommand
default java.util.Map<java.lang.String,java.lang.Object> executeCdpCommand(java.lang.String command, @Nullable java.util.Map<java.lang.String,java.lang.Object> params)
Allows to execute ChromeDevProtocol commands against Android Chrome browser session.- Parameters:
command
- Command to execute against the browser (For Ref : https://chromedevtools.github.io/devtools-protocol/)params
- additional parameters required to execute the command- Returns:
- Value (Output of the command execution)
- Throws:
org.openqa.selenium.WebDriverException
- if there was a failure while executing the command- Since:
- Appium 1.18
-
executeCdpCommand
default java.util.Map<java.lang.String,java.lang.Object> executeCdpCommand(java.lang.String command)
Allows to execute ChromeDevProtocol commands against Android Chrome browser session without parameters.- Parameters:
command
- Command to execute against the browser (For Ref : https://chromedevtools.github.io/devtools-protocol/)- Returns:
- Value (Output of the command execution)
- Throws:
org.openqa.selenium.WebDriverException
- if there was a failure while executing the command- Since:
- Appium 1.18
-
-