e2e/src/apps/apps-bulk-import-uri.po.ts
E2E Page Object for apps page.
Methods |
getCancel |
getCancel()
|
Defined in e2e/src/apps/apps-bulk-import-uri.po.ts:46
|
Get the cancel button
Returns :
any
|
getHeaderText |
getHeaderText()
|
Defined in e2e/src/apps/apps-bulk-import-uri.po.ts:22
|
Retrieves text of the title for the page.
Returns :
any
|
getSubmit |
getSubmit()
|
Defined in e2e/src/apps/apps-bulk-import-uri.po.ts:39
|
Get the submit button
Returns :
any
|
navigateTo |
navigateTo()
|
Defined in e2e/src/apps/apps-bulk-import-uri.po.ts:14
|
Navigates to the apps/register-apps page.
Returns :
any
|
setUri | ||||||||
setUri(uri: string)
|
||||||||
Defined in e2e/src/apps/apps-bulk-import-uri.po.ts:30
|
||||||||
Set URI
Parameters :
Returns :
void
|
import { browser, by, element, protractor } from 'protractor';
/**
* E2E Page Object for apps page.
*
* @author Damien Vitrac
*/
export class AppsBulkImportUriPage {
/**
* Navigates to the apps/register-apps page.
* @returns {wdpromise.Promise<any>}
*/
navigateTo() {
return browser.get('#/apps/add/import-from-uri');
}
/**
* Retrieves text of the title for the page.
* @returns {any}
*/
getHeaderText() {
return element(by.css('.page-step-2-head h1')).getText();
}
/**
* Set URI
* @param {string} uri
*/
setUri(uri: string) {
element(by.css('#uriInput')).sendKeys(uri);
browser.sleep(400);
}
/**
* Get the submit button
* @returns {ElementFinder}
*/
getSubmit() {
return element(by.name(`submit`));
}
/**
* Get the cancel button
*/
getCancel() {
return element(by.name(`cancel`));
}
}