Skip to content

Instantly share code, notes, and snippets.

@giltayar
Created March 2, 2017 10:07
Show Gist options
  • Save giltayar/b1610dca3d9c3866bc7a53511764544b to your computer and use it in GitHub Desktop.
Save giltayar/b1610dca3d9c3866bc7a53511764544b to your computer and use it in GitHub Desktop.
const {By} = require('selenium-webdriver')
it('should work', async function () {
await driver.get('http://localhost:8080')
//...
await retry(async () => {
const displayElement = await driver.findElement(By.css('.display'))
const displayText = await displayElement.getText()
expect(displayText).to.equal('0')
})
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment