Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created July 9, 2018 06:34
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lydemann/44f66b5fbd8da5936c23dbadfeb9e4a7 to your computer and use it in GitHub Desktop.
import { browser, by, element } from 'protractor';
export class AppPage {
navigateTo() {
return browser.get('/');
}
getAmountOfTODOs() {
return element(by.css('.todo-item')).count;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment