File

e2e/src/apps/app-details.po.ts

Description

E2E Page Object for app details page.

Example

Index

Methods

Methods

getCancel
getCancel()

Click on cancel button.

Returns : any
getHeaderText
getHeaderText()

Retrieves text of the title.

Returns : any
getInfo
getInfo()

Retrieves text of the app details info.

Returns : any
getProperties
getProperties()

Retrieves properties of the app details info.

Returns : any
navigateTo
navigateTo(type: , name: )

Navigates to the app details page.

Parameters :
Name Type Optional Description
type
name
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'));

  }

}

results matching ""

    No results matching ""