Interface HasCdp

All Known Implementing Classes:
ChromeDriver, ChromiumDriver, EdgeDriver

@Beta public interface HasCdp
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 follow chrome devtools protocol domains/commands.

      It is strongly encouraged to use DevTools 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.