I am sure this is possible but I can't figure it out
I have a popup that I wish to handle using the PopupWatcher class. I prefer to use the RxPath to identify and click the buttons on these popups (of which there are many!).
This works very well, as long as the form title is unique enough so that the PopupWatcher doesn't find and dismiss a prompt that we don't want it to. Well, I have come across such a prompt now where the form title is simply too generic and I'm sure that it is going to cause problems.
So, I was wondering if it is possible to identify and click on the button where there is particular caption text on the prompt. For example, consider the following two RxPaths:
Code: Select all
/form[@title='Application']/text[@caption='This is caption text']
/form[@title='Application']/button[@text='OK']
Thanks in advance.