e2e/src/apps/app-details.po.ts
E2E Page Object for app details page.
Methods |
getCancel |
getCancel()
|
Defined in e2e/src/apps/app-details.po.ts:46
|
Click on cancel button.
Returns :
any
|
getHeaderText |
getHeaderText()
|
Defined in e2e/src/apps/app-details.po.ts:22
|
Retrieves text of the title.
Returns :
any
|
getInfo |
getInfo()
|
Defined in e2e/src/apps/app-details.po.ts:30
|
Retrieves text of the app details info.
Returns :
any
|
getProperties |
getProperties()
|
Defined in e2e/src/apps/app-details.po.ts:38
|
Retrieves properties of the app details info.
Returns :
any
|
navigateTo | ||||||||||||
navigateTo(type: , name: )
|
||||||||||||
Defined in e2e/src/apps/app-details.po.ts:14
|
||||||||||||
Navigates to the app details page.
Parameters :
Returns :
any
|
import { browser, by, element } from 'protractor';
/**
* E2E Page Object for app details page.
*
* @author Damien Vitrac
*/
export class AppDetailsPage {
/**
* Navigates to the app details page.
* @returns {wdpromise.Promise<any>}
*/
navigateTo(type, name) {
return browser.get(`#/apps/${type}/${name}`);
}
/**
* Retrieves text of the title.
* @returns {any}
*/
getHeaderText() {
return element(by.css('.heading h1')).getText();
}
/**
* Retrieves text of the app details info.
* @returns {any}
*/
getInfo() {
return element(by.css('.app-details-info')).getText();
}
/**
* Retrieves properties of the app details info.
* @returns {any}
*/
getProperties() {
return element.all(by.css('#table-properties tbody tr'));
}
/**
* Click on cancel button.
* @returns {any}
*/
getCancel() {
return element(by.css('#back-button'));
}
}