@assert-equals/dappdriver
Version:
DappDriver is an e2e testing framework designed for testing decentralized applications (dApps) using MetaMask, Rainbow or Zerion
10 lines (9 loc) • 469 B
TypeScript
import { IPageObject } from '../page/page-object';
export interface IConfirmation {
url: string | RegExp;
title: string;
accept<TPage extends IConfirmation | IPageObject>(page: new () => TPage): Promise<TPage>;
getAllWindowHandles(): Promise<Array<any>>;
reject<TPage extends IConfirmation | IPageObject>(page: new () => TPage): Promise<TPage>;
switchToWindow<TPage extends IConfirmation | IPageObject>(page: new () => TPage): Promise<TPage>;
}