Micro Focus QTP (UFT) Forums
Drop down list embedded in a table - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Drop down list embedded in a table (/Thread-Drop-down-list-embedded-in-a-table)



Drop down list embedded in a table - hithead - 09-05-2008

Hello,

I have a dropdown list embedded in a cell of a grid(table).
The user has to click once on the cell to get the focus on the dropdownlist and another click to activate and view the drop down list's elements.
Both the table of type Webtable and the drop down list of type Weblist are being captured by QTP and they are found in the object's repository with the correct Id and name.
However when i run my scenario i am always getting an error that the weblist object could not be found eventhough in my scenario the focus is on the dwop down list and it is viewable.

Is there a solution for this problem?


RE: Drop down list embedded in a table - ashokghali - 09-05-2008

Try the below line of code for this there is no need of the weblist to be there in OR. I am assuming that OR has the webtable.

Code:
browser("browserName").Page("PageName").WebTable("WebTableName").ChildItem(iRow,iCol,"WebList",0).Click

Thanks,
-Ashok