Micro Focus QTP (UFT) Forums
Unable to select a combo item by value or index - 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 a combo item by value or index (/Thread-Unable-to-select-a-combo-item-by-value-or-index)



Unable to select a combo item by value or index - martinshort - 07-18-2013

Hi

I am trying to select an item from a combo box using the code below.

Code:
"SwfWindow("Underwriters Document").SwfObject("lookUpEditProfileForm").Click"

The problem is that UFT won't work without specifying co-ordinates.

I want to be able to specify the value, or at very least the index number, but I can't find a method that seems applicable.

I also tried looking at the object methods and there methods SELECT and SELECT 1 and SELECTALL, but I can't work out syntax for this.

Any brilliant suggestions?

Thanks
Martin


RE: Unable to select a combo item by value or index - Staff - 07-19-2013

Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.


RE: Unable to select a combo item by value or index - sudhirzpatil - 08-26-2013

I am facing the same issue, any workaround friends