Micro Focus QTP (UFT) Forums

Full Version: Web Element: Not able to select value from drop down in Web Element.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On web page, I do have a drop-down / Combo box which is identified as Web Element via QTP. Now from that drop-down I need to select a value. But I am not getting any way to do so.

Example:
There is a drop down of Country List, and you need to select "India" from that list.

So requesting guidance on it how it could be done. I do not see any select or SET property on web element to achieve this.

Thanks
Rajeev
Dear's,
Can any one guide me here to resolve this issue please.
You can solve this issue using devicereplay object with mouse click option.  Go through the below link for more information about devicereplay object
Try to spy correctly it should show web list.

or else. take the list of elements in a variable using GetROproperty("Names")
syntax:

Code:
xyz = Browser().page().webelement().getroproperty("names")
Msgbox xyz

Then split the variable it will convert into array and u can select the value based on index... hope this works
In recording, you can get it as weblist. Try it. I faced same issue for some elements.