MCPcopy
hub / github.com/SeleniumHQ/selenium / sendDevToolsCommand

Method sendDevToolsCommand

javascript/selenium-webdriver/chromium.js:724–728  ·  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

722 * @see <https://chromedevtools.github.io/devtools-protocol/>
723 */
724 sendDevToolsCommand(cmd, params = {}) {
725 return this.execute(
726 new command.Command(Command.SEND_DEVTOOLS_COMMAND).setParameter('cmd', cmd).setParameter('params', params),
727 )
728 }
729
730 /**
731 * 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