addCommand
The browser method addCommand
helps you to write your own set of commands. You can write your command in a synchronous way or in an asynchronous way.
info
You can find more information on adding custom commands in the custom command guide.
#
Usage#
ParametersName | Type | Details |
---|---|---|
name | String | name of the custom command |
callback | Function | function to be called |
elementScope optional | Boolean | extend the Element object instead of the Browser object |
#
Exampleexecute.js