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#
ParametersName | 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 |
#
Exampleexecute.js