e2e/src/about/about.po.ts
E2E Page Object for about page.
Methods |
getHeaderText |
getHeaderText()
|
Defined in e2e/src/about/about.po.ts:22
|
Retrieves text of the title for the page.
Returns :
any
|
navigateTo |
navigateTo()
|
Defined in e2e/src/about/about.po.ts:14
|
Navigates to the /about page.
Returns :
any
|
import { browser, by, element } from 'protractor';
/**
* E2E Page Object for about page.
*
* @author Glenn Renfro
*/
export class AboutPage {
/**
* Navigates to the /about page.
* @returns {wdpromise.Promise<any>}
*/
navigateTo() {
return browser.get('#/about');
}
/**
* Retrieves text of the title for the page.
* @returns {any}
*/
getHeaderText() {
return element(by.css('app-page-head-title h1')).getText();
}
}