18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How to identify 2 popups having the same title?
Hello,
I am writing sahi script on an Enovia v6 application (running on Firefox 3.6).
It often happens that i have several popup open at the same time and all the popup have the same title.
For instance, I want to create an object:
- the creation page is the first popup.
- In the creation page I have to set a person.
- to search for that person a new popup is raised.
Both popup (creation and search) have the same title.
Since the title is not unique, I cannot identify the popups with it.
I tried to retrieve the "ModalDialog*" name for each popup but never succedeed.
Does someone faced the same problem and found a solution?
Many thanks
Stéphanie
I am writing sahi script on an Enovia v6 application (running on Firefox 3.6).
It often happens that i have several popup open at the same time and all the popup have the same title.
For instance, I want to create an object:
- the creation page is the first popup.
- In the creation page I have to set a person.
- to search for that person a new popup is raised.
Both popup (creation and search) have the same title.
Since the title is not unique, I cannot identify the popups with it.
I tried to retrieve the "ModalDialog*" name for each popup but never succedeed.
Does someone faced the same problem and found a solution?
Many thanks
Stéphanie
Best Answer
-
Hi Stephanie,
You can uniquely identify the 2 popups having the same title using their window.id property.
I had used that and its working fine for me.
Answers
thanks for your answer. I tried to use that solution but I am completly new in javascript and I don't manage to write the correct code.
Could you give me an example?
Many thanks
Stéphanie
Are you employed in DS, then you can contact Suprit FZ7.
You can use something like below:
_popup(/.*/).window.top.id