![]() |
How to select multiple items from a combobox/listbox - 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: How to select multiple items from a combobox/listbox (/Thread-How-to-select-multiple-items-from-a-combobox-listbox) |
How to select multiple items from a combobox/listbox - prasadworld321 - 08-25-2009 Hi everybody, i have a web application where there is a combo box, from which the user can select more than 2 items. So can you pls give an idea to write the QTP script for it???? its urgent Thanks in advance RE: QTP script for combobox - Saket - 08-25-2009 if it means when you say " from which the user can select more than 2 items." that user can select multiple values( more than two) from the combo box, then you can do this using 'ExtendSelect' e.g. Code: Browser().Page().WebList().Select "Value1" Is this what you are looking for?? RE: QTP script for combobox - basanth27 - 08-25-2009 Is it a combobox or a context menu ?? A screenshot will help in any case. Did you try saket's suggestion ? RE: How to select multiple items from a combobox/listbox - Ankur - 08-25-2009 @prasadworld321, Going forward we would suggest you to first write what you have tried instead of asking for a 'QTP script'. Also refrain from using words like "urgent", "ASAP". Answering your question, I guess Saket's suggestion should work. @Everyone: It would be great if we can have snippets of code inside code tags. [click on 'Preview Post' button and use the appropriate menu option.] This will make the code more readable. Thread title is changed to reflect the actual question. RE: QTP script for combobox - prasadworld321 - 08-26-2009 Thanks a lot for your quick and effective answer. i got what was needed for me thanks Thanks Saket |