объект страницы

const Page = require('../pageobjects/mainpage.js');

/**
 * sub page containing specific selectors and methods for a specific page
 */
class mainPage  {
    /**
     * define selectors using getter methods
     */
    get GuidButton () {
        return $('li a[href="/docs/gettingstarted.html"]');
    };
/**
     * a method to encapsule automation code to interact with the page
     * 
     */
  
     async clickGuidButton () { await this.GuidButton.click()};
  	 async SetValue (value) {await this.inputFieldInterectible.setValue(value) }

    /**
     * overwrite specific options to adapt it to page object
     */
}

module.exports = new mainPage();
Vivacious Vicuña