Interface ExecuteCDPCommand

All Superinterfaces:
ExecutesMethod
All Known Implementing Classes:
AndroidDriver, FlutterAndroidDriver

public interface ExecuteCDPCommand extends ExecutesMethod
  • Method Details

    • executeCdpCommand

      default Map<String,Object> executeCdpCommand(String command, @Nullable Map<String,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 Map<String,Object> executeCdpCommand(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