Skip to content

Instantly share code, notes, and snippets.

@giltayar
Created March 2, 2017 10:51
Show Gist options
  • Save giltayar/af28f1f8335a3658577ec2b5931b2f84 to your computer and use it in GitHub Desktop.
Save giltayar/af28f1f8335a3658577ec2b5931b2f84 to your computer and use it in GitHub Desktop.
const digit4Element = await driver.findElement(By.css('.digit-4'))
const digit2Element = await driver.findElement(By.css('.digit-2'))
const operatorMultiply = await driver.findElement(By.css('.operator-multiply'))
const operatorEquals = await driver.findElement(By.css('.operator-equals'))
await digit4Element.click()
await digit2Element.click()
await operatorMultiply.click()
await digit2Element.click()
await operatorEquals.click()
await retry(async () => {
const displayElement = await driver.findElement(By.css('.display'))
const displayText = await displayElement.getText()
expect(displayText).to.equal('84')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment