← Back to Discord Forum

Switch to new window(C#)

I a ,Hello, need to switch to new popup window with C#. (this 2FA popup is automatically opened when I load the first page). Should this code work? As for me it doesn't wait for the popup.


This thread is trying to answer question "How can I switch to a new popup window with C# for a 2FA authentication?"

3 replies

Hi there, I don't do it like this, if it is some standard popup in a website, then I just locate it using someLocator and then I use someLocator.WaitForVisible()

It's not a page popup, it's 2FA popup that has different URL

Ah I see, well, then I can't really help you, sorry

Related Discord Threads

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.