UNPKG

@assert-equals/dappdriver

Version:

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

34 lines (33 loc) 960 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ImportWallet = void 0; const html_element_1 = require("../../../controls/html-element"); const page_1 = require("../../../page"); const recovery_phrase_1 = require("./recovery-phrase"); /** * * * @export * @class ImportWallet * @extends {PageObject} */ class ImportWallet extends page_1.PageObject { importRecoveryPhraseButton = () => new html_element_1.HTMLElement('a[href="#/onboarding/import/mnemonic"]'); /** * Creates an instance of ImportWallet. * @memberof ImportWallet */ constructor() { super('onboarding#/onboarding/import', 'Zerion'); } /** * * * @return {*} {Promise<RecoveryPhrase>} * @memberof ImportWallet */ async importRecoveryPhrase() { return await this.importRecoveryPhraseButton().click(recovery_phrase_1.RecoveryPhrase); } } exports.ImportWallet = ImportWallet;