@assert-equals/dappdriver
Version:
DappDriver is an e2e testing framework designed for testing decentralized applications (dApps) using MetaMask, Rainbow or Zerion
41 lines (40 loc) • 1.16 kB
TypeScript
import { HTMLElement } from '../../controls/html-element';
import { IConfirmation } from '../../interface/wallet/confirmation';
import { PageObject } from '../../page';
/**
*
*
* @export
* @class ConfirmTransaction
* @extends {PageObject}
* @implements {IConfirmation}
*/
export declare class ConfirmTransaction extends PageObject implements IConfirmation {
protected nextButton: () => HTMLElement;
protected cancelButton: () => HTMLElement;
/**
* Creates an instance of ConfirmTransaction.
* @param {(string | RegExp)} [url='#confirm-transaction']
* @param {string} [title='MetaMask']
* @memberof ConfirmTransaction
*/
constructor(url?: string | RegExp, title?: string);
/**
*
*
* @template TPage
* @param {new () => TPage} [page]
* @return {*} {Promise<any>}
* @memberof ConfirmTransaction
*/
accept<TPage>(page?: new () => TPage): Promise<any>;
/**
*
*
* @template TPage
* @param {new () => TPage} [page]
* @return {*} {Promise<any>}
* @memberof ConfirmTransaction
*/
reject<TPage>(page?: new () => TPage): Promise<any>;
}