metamask-testing-tools - v2.2.4
    Preparing search index...

    Class Metamask

    Index

    Constructors

    Properties

    context: BrowserContext
    extension: Extension
    extraExtensions: Extension[]
    isFlask: boolean
    page: Page

    Methods

    • Wait for metamask confirmation dialog to appear and confirm or cancel

      Parameters

      • Optionalconfirm: boolean = true

      Returns Promise<void>

    • Wait for a dialog

      Parameters

      • name: string | RegExp | ((url: URL) => boolean)

        A glob pattern, regex pattern or predicate receiving [URL] to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.

      Returns Promise<Page>