getCommandHistory

Returns a list of previous called commands + their arguments.

Usage

1
client.getCommandHistory().then(callback);

Parameters

Param Type Details

Example

getCommandHistory.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
client
.init()
.url('http://www.google.com')
.click('#username')
.addValue('#password', 'text')
.pause(2000)
.getCommandHistory().then(function(history){
console.log(history);
// outputs:
// [{
// command: 'init',
// args: []
// },{
// command: 'click',
// args: ['#username']
// },{
// command: 'addValue',
// args: ['#password', 'text']
// },{
// command: 'pause',
// args: [2000]
// }]
})
.end();