Created
March 2, 2017 10:51
-
-
Save giltayar/af28f1f8335a3658577ec2b5931b2f84 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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