Micro Focus QTP (UFT) Forums
Web Element: Not able to select value from drop down in Web Element. - 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: Web Element: Not able to select value from drop down in Web Element. (/Thread-Web-Element-Not-able-to-select-value-from-drop-down-in-Web-Element)



Web Element: Not able to select value from drop down in Web Element. - Rajeev - 07-21-2015

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


RE: Web Element: Not able to select value from drop down in Web Element. - Rajeev - 07-31-2015

Dear's,
Can any one guide me here to resolve this issue please.


RE: Web Element: Not able to select value from drop down in Web Element. - sporandla - 07-31-2015

You can solve this issue using devicereplay object with mouse click option.  Go through the below link for more information about devicereplay object


RE: Web Element: Not able to select value from drop down in Web Element. - venkatesh9032 - 08-04-2015

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


RE: Web Element: Not able to select value from drop down in Web Element. - kbhargava505 - 08-04-2015

In recording, you can get it as weblist. Try it. I faced same issue for some elements.