app.po.ts 301 Bytes
Newer Older
Valentín Krigovský's avatar
Valentín Krigovský committed
1
2
3
4
5
6
7
8
9
10
11
import { browser, by, element } from 'protractor';

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

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