Last active
November 15, 2018 10:21
-
-
Save tuliobluz/d4111b85317996a34c9a358d9e078c69 to your computer and use it in GitHub Desktop.
spec.po.js
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
let nameInput, | |
greeting; | |
module.exports = { | |
init: () => { | |
nameInput = element(by.model('yourName')); | |
greeting = element(by.binding('yourName')); | |
}, | |
get: (string) => { | |
return browser.get(string); | |
}, | |
setName: (name) => { | |
return nameInput.sendKeys(name); | |
}, | |
getGreetingText: () => { | |
return greeting.getText(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment