12345678910111213141516171819202122232425262728293031 |
- /* global browser document */
- const Page = require('./page');
- class HomePage extends Page {
- constructor() {
- super('/');
- this.footerLinks = 'footer a';
- this.uploadInput = '#file-upload';
- this.uploadButton = '#upload-btn';
- this.progress = 'progress';
- this.shareUrl = '#share-url';
- this.downloadCountSelect = '#expire-after-dl-count-select';
- this.addPassword = '#add-password';
- this.passwordInput = '#password-input';
- this.passwordButton = '#password-btn';
- }
- waitForPageToLoad() {
- super.waitForPageToLoad();
- browser.waitForExist(this.uploadInput);
- this.showUploadInput();
- return this;
- }
- showUploadInput() {
- browser.execute(() => {
- document.getElementById('file-upload').style.display = 'block';
- });
- }
- }
- module.exports = HomePage;
|