Package org.openqa.selenium.chromium
Interface HasCdp
- All Known Implementing Classes:
ChromeDriver
,ChromiumDriver
,EdgeDriver
Used by classes to indicate that they can execute Command DevTools commands.
-
Method Summary
-
Method Details
-
executeCdpCommand
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.
-