I am using robot for testing web application. In the application when a save action is done, a window pops up (it is a radwindow). The text in the window is recognised by Robot as part of the HtmlTable with Index 1. But the problem is that the window behind this window also contains HtmlTables. So Robot gives the data from the main window and not from the pop up window. Does anyone have an idea about this issue?
We had a similar issue when our developers have decided to implement a custom message box for our application. The details can be found here.
We solved the problem by introducing an invisible text box in the message box and when ever the popup is on, the default text inside the text box is changed. I think the Radwindow can be customised in this fashion, but this calls for a change request.
Have you verified that the recognition string you are using to the new frame is correct (all the back to the highest parent)? You can get the correct recognition string by using the Inspector.
Second, ask, plead beg your developers to ID the tables. It helps tremendously. Bring them donuts!
Finally, try instituting some DOM code to get to the browser object itself and query it that way. Much more elegant way of gathering HTML data. See the Yahoo Rational Users Group for some source code on using the DOM.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
The frame used is a rad window. The developer told me that the id of rad components is internally generated by the rad functions itself. Does anyone have any idea if id's of the rad window and the text in it can be made static and predetermined.