@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
14 lines (11 loc) • 610 B
JavaScript
describe('submitForm', () => {
it('should send data from form', async function () {
(await this.client.isExisting('.gotDataA')).should.be.equal(false);
(await this.client.isExisting('.gotDataB')).should.be.equal(false);
(await this.client.isExisting('.gotDataC')).should.be.equal(false)
await this.client.submitForm('.send').pause(1000);
(await this.client.isExisting('.gotDataA')).should.be.equal(true);
(await this.client.isExisting('.gotDataB')).should.be.equal(true);
(await this.client.isExisting('.gotDataC')).should.be.equal(true)
})
})