* 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 = {})
| 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. |
no test coverage detected