e2e/src/utils/navigation.po.ts
E2E Pagination Object.
Properties |
Methods |
get |
get()
|
Defined in e2e/src/utils/navigation.po.ts:28
|
Get the pagination bloc
Returns :
any
|
navigateTo | ||||||||
navigateTo(page: number)
|
||||||||
Defined in e2e/src/utils/navigation.po.ts:36
|
||||||||
Navigate
Parameters :
Returns :
void
|
Public ABOUT |
ABOUT:
|
Default value : 6
|
Defined in e2e/src/utils/navigation.po.ts:22
|
Public ANALYTICS |
ANALYTICS:
|
Default value : 5
|
Defined in e2e/src/utils/navigation.po.ts:20
|
Public APPS |
APPS:
|
Default value : 0
|
Defined in e2e/src/utils/navigation.po.ts:10
|
Public JOBS |
JOBS:
|
Default value : 4
|
Defined in e2e/src/utils/navigation.po.ts:18
|
Public RUNTIME |
RUNTIME:
|
Default value : 1
|
Defined in e2e/src/utils/navigation.po.ts:12
|
Public STREAMS |
STREAMS:
|
Default value : 2
|
Defined in e2e/src/utils/navigation.po.ts:14
|
Public TASKS |
TASKS:
|
Default value : 3
|
Defined in e2e/src/utils/navigation.po.ts:16
|
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();
}
}