cancel
Showing results for 
Search instead for 
Did you mean: 

How to I attach to an already running browser that has non-unique window title?

Nomaqhikiza_Gug
Level 2
How to I attach to an already running browser that has non-unique window title? I am using Windows 7. Internet explorer seems to create two instances one with process name "iexplore.exe" and another with "iexplore.exe *32".  I am attempting to attach to a browser that is already running. The other parameter I can enter is Window Title, however this parameter is not unique. Do you kno whow I can disguinsh these two instances of IE.
1 REPLY 1

BastiaanBezemer
Level 5
Hi Nnkala, Did you already try Wildcards in the window title ? If that doesn't work, then for sure there must be a unique element on the page that shows if you're on the right page. Or the URL needs to have some unique part. You can then make an constructed loop that attaches to the process ""iexplore"" with window title ""*"" and as child index you start with 0 And you increase the Child Index with each loop. In the loop you do your check (URL, or Element Exists) and if you have the wrong instance, you detach and continue looping. Be sure to also implement error handling & endless loop prevention. Luckely enough there are usually more solutions than challenges 🙂