@assert-equals/dappdriver
Version:
DappDriver is an e2e testing framework designed for testing decentralized applications (dApps) using MetaMask, Rainbow or Zerion
42 lines (41 loc) • 1.3 kB
TypeScript
import { HTMLElement } from '../../controls/html-element';
import { IPageObject } from '../../interface/page/page-object';
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 get nextButton(): HTMLElement;
protected get 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<TPage>}
* @memberof ConfirmTransaction
*/
accept<TPage extends IConfirmation | IPageObject>(page: new () => TPage): Promise<TPage>;
/**
*
*
* @template TPage
* @param {new () => TPage} page
* @return {*} {Promise<TPage>}
* @memberof ConfirmTransaction
*/
reject<TPage extends IConfirmation | IPageObject>(page: new () => TPage): Promise<TPage>;
}