What if I had 2 Chrome Instances opened by WebDriver protocol, using Open Browser. Then when I download any file, I want to get the name of the file by get the attribute “name” from the download bar (please refer the below screenshot).
![]()
So the question is: How do I distinguish between 2 or more same elements from different Chrome instances? I tried to add idx to the selector but it wont work properly.

Hi
Is title same or different
If title is different then it would be easy to interact with specific page @midori
As you said it would be easy if the titles are different, but that’s not always the case. For example, the files were downloaded from the same page using multiple users’ accounts.
When you open the browsers, set output variables.
Use the same variables later on when Attaching to the different browsers. That way you can be sure which browser the automation is using.
Then it has to be one after the another by closing each instance once the man’s is fetched
Like open Browser 1
Get the data
Close it
Open browser 2
Get the data
Close it
This s because of the fact the title may or may not be same
This would work perfectly in the scenario when I only need to interact with web elements. However, the elements I’m dealing with are likely windows elements as you can see from the image I provided
Thank you for your advices, but I need to execute them synchronously.
There is Another option
use different browsers so that u can run them easily with different window attributes
@midori
If u want to try synchronously then we can use hot key as another option to shift between tabs or browsers
Like how we do it with keyboard
U can try with the same combo of keys here to shift and perform simultaneously
@midori
Oh, I see. Did you try anyway? You could also see if Attach Window would help (you should be able to pass a Browser variable to it by using browser.Element).
cool, that would help a lot. i’ll try
i try, however it’s not stable. Sometimes it’s validated and sometimes it’s not
What do you mean?
Are you using title and idx if then the combination will be different only idx is different
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
