Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

unable to switch to popup window, when trying to select account #341

Description

@vivek-consensys

Describe the problem
When connecting to MetaMask, there is a popup requesting which account you would like to connect with? How can we switch to the popup window to be able to select which account we would like to connect with? I have attached an image below:-

Screenshot 2023-08-24 at 14 01 39

System:

  • OS: iOS
  • OS version: 13.4.1
  • NodeJs version: v16.20.1
  • dappeteer version : "^5.0.0"
  • testing framework: jest
  • testing framework version "^29.5.0",
  • puppeteer version "19.6.3"

Code until the popup:-

connectMetamaskButton = await page.waitForXPath("//button[contains(text(),'Connect')]"); await connectMetamaskButton.click();Ï metaMaskButton = await page.waitForXPath("//img[@alt='MetaMask']//.."); await metaMaskButton.click();

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions