Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created July 9, 2018 06:34
Show Gist options
  • Save lydemann/44f66b5fbd8da5936c23dbadfeb9e4a7 to your computer and use it in GitHub Desktop.
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