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