2019-10-02 13:17:56 -04:00
|
|
|
import {browser, by, element} from 'protractor';
|
2019-08-12 15:52:58 -04:00
|
|
|
|
|
|
|
export class AppPage {
|
2019-10-02 13:17:56 -04:00
|
|
|
navigateTo() { return browser.get('/'); }
|
2019-08-12 15:52:58 -04:00
|
|
|
|
2019-10-02 13:17:56 -04:00
|
|
|
getHeading() { return element(by.css('app-root h1')).getText(); }
|
2019-08-12 15:52:58 -04:00
|
|
|
|
2019-10-02 13:17:56 -04:00
|
|
|
getParagraph(name: string) { return element(by.css('app-root p#' + name)).getText(); }
|
2019-08-12 15:52:58 -04:00
|
|
|
}
|