Created
March 2, 2017 10:07
-
-
Save giltayar/b1610dca3d9c3866bc7a53511764544b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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