Package org.openqa.selenium.chromium

Interface HasCdp

All Known Implementing Classes:
ChromeDriver,ChromiumDriver,EdgeDriver

@Betapublic interfaceHasCdp
Used by classes to indicate that they can execute Command DevTools commands.
  • Method Details

    • executeCdpCommand

      Map<String,Object> executeCdpCommand(String commandName,Map<String,Object> parameters)
      Execute a Chrome DevTools Protocol command and get returned result. The command and command args should followchrome devtools protocol domains/commands.

      It is strongly encouraged to useDevTools API instead of this

      Parameters:
      commandName - the command to execute with Chrome Dev Tools.
      parameters - any information needed to execute the Dev Tools command.
      Returns:
      the name and value of the response.