Skip to content

Instantly share code, notes, and snippets.

@tuliobluz
Last active November 15, 2018 10:21
Show Gist options
  • Save tuliobluz/d4111b85317996a34c9a358d9e078c69 to your computer and use it in GitHub Desktop.
Save tuliobluz/d4111b85317996a34c9a358d9e078c69 to your computer and use it in GitHub Desktop.
spec.po.js
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