summaryrefslogtreecommitdiff
path: root/recipeBuddy/e2e/src/app.po.ts
blob: b8498c26f24ea7661ad43fda1a000c7b2cef29e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { browser, by, element } from 'protractor';

export class AppPage {
  navigateTo() {
    return browser.get(browser.baseUrl) as Promise<any>;
  }

  getTitleText() {
    return element(by.css('app-root .content span')).getText() as Promise<string>;
  }
}