Hello,
Currently I have 2 actions to close 2 popup dialogs.
Action 1: Click OK button (for 1st popup)
//after clicking the OK button, a second popup dialog will appear in front of the first dialog, so basically the first dialog will not close.
Action 2: Click OK button (for 2nd popup)
//after clicking the OK button, both the first and second popup dialog will close.
I run the actions but the second action fails to close the second pop dialog which leaves the 2 popup dialog being displayed and not closed.
As I check the repository, I found out that both popup dialogs share the same repository. Both dialogs have the same title in the title bar.
Is there a way to separate the repository used for each dialog? Is there a work around for this matter?
Popup dialog with the same names
Re: Popup dialog with the same names
You might be able to use some attribute on each of the dialogs that differentiates them from each other - size, Z-order, or even a particular control that is unique to one over the other. Then modify the RxPath to the dialog to include that differentiating attribute.
-
- Certified Professional
- Posts: 455
- Joined: Tue Feb 18, 2014 2:14 pm
- Location: Co Louth, Ireland
- Contact:
Re: Popup dialog with the same names
Try editing the repo item for the OK button to make it visible and enabled. That way the test should click on the OK button in the active / enabled dialog.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 9
- Joined: Fri Jul 16, 2021 3:38 am
Re: Popup dialog with the same names
The problem is now fixed.
Thanks Stub and Fergal, your suggestions fixed the problem.
Thanks Stub and Fergal, your suggestions fixed the problem.