File

e2e/src/jobs/jobs.po.ts

Description

E2E Page Object for jobs page.

Example

Index

Methods

Methods

getHeaderText
getHeaderText()

Retrieves text of the title for the page.

Returns : any
navigateTo
navigateTo()

Navigates to the jobs/executions page.

Returns : any
import { browser, by, element } from 'protractor';

/**
 * E2E Page Object for jobs page.
 *
 * @author Glenn Renfro
 */
export class JobsPage {

  /**
   * Navigates to the jobs/executions page.
   * @returns {wdpromise.Promise<any>}
   */
  navigateTo() {
    return browser.get('#/jobs/executions');
  }

  /**
   * Retrieves text of the title for the page.
   * @returns {any}
   */
  getHeaderText() {
    return element(by.css('app-page-head-title h1')).getText();
  }
}

results matching ""

    No results matching ""