Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select multiple items from a combobox/listbox
#1
Solved: 11 Years, 4 Months ago
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
Reply
#2
Solved: 11 Years, 4 Months ago
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"
Browser().Page().WebList().ExtendSelect "Value2"

Is this what you are looking for??

Reply
#3
Solved: 11 Years, 4 Months ago
Is it a combobox or a context menu ?? A screenshot will help in any case. Did you try saket's suggestion ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#4
Solved: 11 Years, 4 Months ago
@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.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#5
Solved: 11 Years, 4 Months ago
Thanks a lot for your quick and effective answer.
i got what was needed for me

thanks
Thanks Saket
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 2,291 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  [UFT] [WPF] DataGrid: get items of ControlTemplate robertosalemi 0 3,491 07-14-2016, 07:52 PM
Last Post: robertosalemi
  SwfList: unchecked all items robertosalemi 0 1,959 12-21-2015, 03:46 PM
Last Post: robertosalemi
  [UFT] Get Item of ListBox and convert it to array felino 1 2,444 11-26-2015, 02:20 PM
Last Post: felino
  Select Menu items shilpaS 1 7,078 06-19-2015, 01:23 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)