Micro Focus QTP (UFT) Forums

Full Version: Unable to select value on weblist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
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.
Please attach the spyshot of the object and the code you have tried.