For example, I try to login, and it pops up a new window to type my login information.
I'm using chrome, and it says that the browser is being controlled by automation. But I don't know how to refer to the 2nd window. I tried using SetFocus, but I think I need an ID.
Browser automation: how to handle pop-up windows?
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Browser automation: how to handle pop-up windows?
Hi,
See this thread:
viewtopic.php?f=3&t=10716&hilit=switchwindow
You'll find an example with a GetWindowHandles and SwitchWindow subroutine which will allow you to get the window handle of the popup and then switch browsing context to it.
See this thread:
viewtopic.php?f=3&t=10716&hilit=switchwindow
You'll find an example with a GetWindowHandles and SwitchWindow subroutine which will allow you to get the window handle of the popup and then switch browsing context to it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?