drop.chapril.org-firefoxsend/test/integration/pages/desktop/share_page.js

23 lines
500 B
JavaScript
Raw Normal View History

2018-10-02 22:15:02 +02:00
import Page from './page';
export default class SharePage extends Page {
constructor() {
super();
this.sharePageLocator = '#shareWrapper';
this.shareUrlLocator = '#fileUrl';
}
waitForPageToLoad() {
browser.waitUntil(() => {
browser.waitForExist(this.sharePageLocator);
let el = browser.element(this.sharePageLocator);
return browser.elementIdDisplayed(el.value.ELEMENT);
});
return this;
}
get fileUrl() {
return this.shareUrlLocator;
}
}