Selection of an item from the popup dialog not recorded.
QTP does not record the selection of item from the popup dialog, and when the 'Ok' button is clicked only that is recorded.
When I did the object spy on the dialog it was recognized as a webtable and all items inside are recognized as WebElements. How do I do the selection part?
Does the table inside the dialog wrapped with any other third party control?
What is object hierarchy when you spy the List?
can you post a screenshot....
can you confirm if that is a dialog or a browser pop-up
And for objects being recognized as elements - might be that AJAX tech has been used
A possible solution is using the webtable methods to perform your actions and your logic being robust
Would probably help you out more if you can detail us the Obj Hierachy
Yes . It is a telerik control.
The object hierarchy is,
Browser( ).Page(). WebTable(). WebElement().
It is a pop up which is opened on clicking a button.
I tried looping thru the webtable for each row and columns within that row .
When I searched for the specific text in a cell there were no matches.
Then i checked the html page for that Webpage.
i saw that there was a webtable within a webtable.
3 rows inside the webtable. and in the third row. there is a listbox which contains all the items as <li> .
It is a Telerik Control. The object hierarchy is
Browser(""). WebPage(""). Webtable(" ").WebTable(" "). WebElement
I checked the html page. Looks like there is a Webtable and in the third row, there is a listbox . SO the listbox contains all the items (items in the popup window) as listitems.