UNPKG

@christian-bromann/webdriverio

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

10 lines (8 loc) 310 B
describe('clearElement', () => { const input = 'input[name="a"]' it('knows to clear elements', async function () { (await this.client.getValue(input)).should.be.equal('a') await this.client.clearElement(input); (await this.client.getValue(input)).should.be.equal('') }) })