Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle 2nd browser popup window? #65

Open
dtnyc9005 opened this issue Jan 22, 2020 · 2 comments
Open

How to handle 2nd browser popup window? #65

dtnyc9005 opened this issue Jan 22, 2020 · 2 comments

Comments

@dtnyc9005
Copy link

Hi guys, have an application that features a second (browser) window to pop up, and curious about how we would get into and manipulate it as we do with the parent window? any guidance would be appreciated...

-DT

@craigofnz
Copy link
Contributor

@dtnyc9005 Can you identify the child window by iterating through Get-WindowHandle and Switch-SeWindow?

Would a helper function like Select-SeWindow help?

@dtnyc9005
Copy link
Author

@craigofnz Yes, that would be super helpful, like piping $driver | Select-SeWindow. Something like Select-SeWindow also knowing how many are currently open by the webdriver, will make things simpler that using the method SwitchTo().Window().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants