page.js 362 B

12345678910111213
  1. /**
  2. * main page object containing all methods, selectors and functionality
  3. * that is shared across all page objects
  4. */
  5. module.exports = class Page {
  6. /**
  7. * Opens a sub page of the page
  8. * @param path path of the sub page (e.g. /path/to/page.html)
  9. */
  10. open(path) {
  11. return browser.url(`https://the-internet.herokuapp.com/${path}`)
  12. }
  13. }