UNPKG

@assert-equals/dappdriver

Version:

DappDriver is an e2e testing framework designed for testing decentralized applications (dApps) using MetaMask, Rainbow or Zerion

53 lines (52 loc) 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Information = void 0; const html_element_1 = require("../../../controls/html-element"); const page_1 = require("../../../page"); const backup_1 = require("./backup"); /** * * * @export * @class Information * @extends {PageObject} */ class Information extends page_1.PageObject { continueButton = () => new html_element_1.HTMLElement('xpath=//button[contains(., "Continue")]'); backUpNowButton = () => new html_element_1.HTMLElement('xpath=//button[contains(., "Back up now")]'); /** * Creates an instance of Information. * @memberof Information */ constructor() { super('onboarding#/onboarding/create/info', 'Zerion'); } /** * * * @return {*} {Promise<void>} * @memberof Information */ async stepOne() { return await this.continueButton().clickAndWait(); } /** * * * @return {*} {Promise<void>} * @memberof Information */ async stepTwo() { return await this.continueButton().clickAndWait(); } /** * * * @return {*} {Promise<BackUp>} * @memberof Information */ async backUpNow() { return await this.backUpNowButton().click(backup_1.BackUp); } } exports.Information = Information;