drop.chapril.org-firefoxsend/test/integration/pages/desktop/download_page.js
Danny Coates 1e62aa976d reimplemented l10n using dynamic import() (#1012)
this should greatly reduce the complexity of the l10n code
and build pipeline and eliminate the most common error
seen in sentry logs (no translate function)
2018-11-20 09:50:59 -05:00

27 lines
578 B
JavaScript

/* global browser */
const Page = require('./page');
class DownloadPage extends Page {
constructor(path) {
super(path);
this.downloadButton = '#download-btn';
this.downloadComplete = '#download-complete';
}
/**
* @function waitForPageToLoad
* @returns {Object} An object representing the page.
* @throws ElementNotFound
*/
waitForPageToLoad() {
super.waitForPageToLoad();
browser.waitForExist(this.downloadButton);
return this;
}
download() {
return browser.click(this.downloadButton);
}
}
module.exports = DownloadPage;