@christian-bromann/webdriverio
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
10 lines (8 loc) • 330 B
JavaScript
describe('isExisting', () => {
it('should check if an element is existing', async function () {
(await this.client.isExisting('div')).should.be.true
})
it('should check if an element is not existing', async function () {
(await this.client.isExisting('#notExistingElement')).should.be.false
})
})