Micro Focus QTP (UFT) Forums
Unable to select value on weblist - 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: Unable to select value on weblist (/Thread-Unable-to-select-value-on-weblist)



Unable to select value on weblist - ShekharUlli - 09-24-2013

Hi All,

I am working on web based application.
In one of the page, there 5 to 6 weblist controls.
I want to select one of the value from that weblist.
When i tried to add them to the Object repository, QTP identifies that weblist as the combination of webelement and webedit.
The dropdown arrow as webelement and remaining part as webedit.

I also tried to add using Object Spy, still facing the same issue.

Can you please tell me how to select a value from the weblist?
If it is possible using descriptive programming then please provide me the code.


RE: Unable to select value on weblist - basanth27 - 09-25-2013

I would consider giving you a code on your application next only to impossible. Here is what i can help you with,

If it is identifying as a webedit, you may try to Set the value which you want to select via weblist. Thats the easiest.

If you want to simulate a dropdown and select, then you may want to click on the Webelement and then check what is the dropdown object as. Depending, spy on the object and identify which properties contain the item identifier and based on that you may select the required item.


RE: Unable to select value on weblist - ShekharUlli - 09-25-2013

Hi,

If i try to Set the value which you i want to select via weblist, then the qtp is throwing error message because there is no such object as weblist in the application

I tried to click on the webelement, but its not working.
Kindly suggest me the solution.


RE: Unable to select value on weblist - basanth27 - 09-26-2013

Please attach the spyshot of the object and the code you have tried.