overwriteCommand
The browser method overwriteCommand helps you to overwrite the browser's and element's native commands like pause and click.
info
You can view more information on this in the custom command section.
Usage#
Parameters#
| Name | Type | Details |
|---|---|---|
| name | String | name of the original command |
| callback | Function | pass original function |
| elementScope optional | Boolean | extend the Element object instead of the Browser object |
Example#
execute.js