2018-10-04 00:39:39 +00:00
|
|
|
/* global browser */
|
|
|
|
class Page {
|
2018-10-02 20:15:02 +00:00
|
|
|
constructor() {}
|
|
|
|
|
|
|
|
open(path) {
|
|
|
|
browser.url(path);
|
|
|
|
this.waitForPageToLoad();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @function waitForPageToLoad
|
|
|
|
* @returns {Object} An object representing the page.
|
|
|
|
* @throws ElementNotFound
|
|
|
|
*/
|
|
|
|
waitForPageToLoad() {}
|
|
|
|
}
|
2018-10-04 00:39:39 +00:00
|
|
|
module.exports = Page;
|