Interface HasCdp

  • All Known Implementing Classes:
    ChromiumDriver

    @Beta
    public interface HasCdp
    Used by classes to indicate that they can execute Command DevTools commands.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> executeCdpCommand​(java.lang.String commandName, java.util.Map<java.lang.String,​java.lang.Object> parameters)
      Execute a Chrome DevTools Protocol command and get returned result.
    • Method Detail

      • executeCdpCommand

        java.util.Map<java.lang.String,​java.lang.Object> executeCdpCommand​(java.lang.String commandName,
                                                                                 java.util.Map<java.lang.String,​java.lang.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.