How to work on two browser windows with same title

selector
browser
chrome
studio

#1

Below is my scenario,

On parent browser I will click on button and new browser will open. New browser’s title is same as old browser one. Even selectors are exactly same & hence, I couldn’t work on new browser window.
Every action I do it happens on first browser window only. Is there any way out, to identify both as different.


#2

Hi @jadhavsiddh,

Can you try to use uiexplorer to get exact selector.

There you may get aaname,title,idx,id any one value may be differ.
Can you check on that

you can give manually if you are opening new session
First Browser <html title='*' idx='1' />
Second Browser <html title='*' idx='2' />

Regards,
Arivu


#3

Hi @jadhavsiddh
Try using hot keys like alt+tab to switch windows


#4

Thanks. But I got resolution. I have used URL in selector and it worked.


#5

I am having the same problem, but in SAP. So, couldn’t use neither this URL fix nor the idx because it is not always a new session.
is there any other fix for this issue.


#6

Can you try to use the Attach Window Activity for each window you have? In the output Property you could create a variable that holds that window. Maybe you can keep it separate this way


#7

Try using recorder for both the windows and check their attach selector. Most of the time recorder picks the unique selector. Or else you have to crawl on UiExplorer from top-down approach to check what’s the difference between two windows.


#8

Thanks for the help. Attach window activity with variable in output property worked for me. :slightly_smiling_face:


#9

Thank You. It works :slight_smile: