You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
545 B
26 lines
545 B
3 years ago
|
import { browser, by, element } from 'protractor';
|
||
|
|
||
|
export class AppDashboard {
|
||
|
|
||
|
getBrowser() {
|
||
|
return browser;
|
||
|
}
|
||
|
|
||
|
navigateTo() {
|
||
|
return browser.get('/');
|
||
|
}
|
||
|
|
||
|
getParagraphText() {
|
||
|
return element(by.xpath('/html/body/app-dashboard/div/main/div/ng-component/div/div[2]/div[1]/div[1]/div[1]/h4')).getText();
|
||
|
}
|
||
|
getBody() {
|
||
|
return element(by.xpath('/html/body'));
|
||
|
}
|
||
|
getByCss(selector) {
|
||
|
return element.all(by.css(selector));
|
||
|
}
|
||
|
getFooterText() {
|
||
|
return element(by.className('app-footer')).getText();
|
||
|
}
|
||
|
}
|