File

e2e/src/utils/navigation.po.ts

Description

E2E Pagination Object.

Example

Index

Properties
Methods

Methods

get
get()

Get the pagination bloc

Returns : any
navigateTo
navigateTo(page: number)

Navigate

Parameters :
Name Type Optional Description
page number
Returns : void

Properties

Public ABOUT
ABOUT:
Default value : 6
Public ANALYTICS
ANALYTICS:
Default value : 5
Public APPS
APPS:
Default value : 0
Public JOBS
JOBS:
Default value : 4
Public RUNTIME
RUNTIME:
Default value : 1
Public STREAMS
STREAMS:
Default value : 2
Public TASKS
TASKS:
Default value : 3
import { by, element } from 'protractor';

/**
 * E2E Pagination Object.
 *
 * @author Damien Vitrac
 */
export class Navigation {

  public static APPS = 0;

  public static RUNTIME = 1;

  public static STREAMS = 2;

  public static TASKS = 3;

  public static JOBS = 4;

  public static ANALYTICS = 5;

  public static ABOUT = 6;

  /**
   * Get the pagination bloc
   * @returns {ElementFinder}
   */
  get() {
    return element(by.css('#navigation'));
  }

  /**
   * Navigate
   * @param {number} page
   */
  navigateTo(page: number) {
    this.get().all(by.css('.sidebar-item a')).get(page).click();
  }

}

results matching ""

    No results matching ""