UNPKG

@christian-bromann/webdriverio

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

18 lines (16 loc) 770 B
describe('getCommandHistory', () => { it('text should be visible after clicking on .btn1', async function () { await this.client.getTitle() await this.client.click('body') const commandList = (await this.client.getCommandHistory()).slice(-5) commandList[0].name.should.be.equal('getTitle') commandList[0].args.should.have.length(0) commandList[1].name.should.be.equal('title') commandList[0].args.should.have.length(0) commandList[2].name.should.be.equal('click') commandList[2].args[0].should.be.equal('body') commandList[3].name.should.be.equal('element') commandList[3].args[0].should.be.equal('body') commandList[4].name.should.be.equal('elementIdClick') }) })