MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / sendDevToolsCommand

Method sendDevToolsCommand

javascript/selenium-webdriver/chromium.js:725–729  ·  view source on GitHub ↗

* Sends an arbitrary devtools command to the browser. * * @param {string} cmd The name of the command to send. * @param {Object=} params The command parameters. * @return {!Promise } A promise that will be resolved when the command * has finished. * @see <https://chromedev

(cmd, params = {})

Source from the content-addressed store, hash-verified

723 * @see <https://chromedevtools.github.io/devtools-protocol/>
724 */
725 sendDevToolsCommand(cmd, params = {}) {
726 return this.execute(
727 new command.Command(Command.SEND_DEVTOOLS_COMMAND).setParameter('cmd', cmd).setParameter('params', params),
728 )
729 }
730
731 /**
732 * Sends an arbitrary devtools command to the browser and get the result.

Callers 2

setDownloadPathMethod · 0.95
devtools_test.jsFile · 0.80

Calls 2

setParameterMethod · 0.80
executeMethod · 0.65

Tested by

no test coverage detected