Last active
March 9, 2018 14:20
-
-
Save leomenezessz/030a3fd4c1cd2106338ed1e66a631b01 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
public CalculatorScreen fillFirstNumber(String number) { | |
inputFirstNumber.click(); | |
inputFirstNumber.clear(); | |
driver.getKeyboard().sendKeys(number); | |
return this; | |
} | |
public CalculatorScreen fillSecondNumber(String number) { | |
inputSecondNumber.click(); | |
inputSecondNumber.clear(); | |
driver.getKeyboard().sendKeys(number); | |
return this; | |
} | |
public CalculatorScreen closeKeyboard() { | |
driver.getKeyboard().pressKey(Keys.RETURN); | |
return this; | |
} | |
public String operationResult() { | |
return resultText.getText().toString().trim(); | |
} | |
public void quitDriver() { | |
driver.quit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment