A webPage has a ComboBox with 10 values in it.
Write a script to select 4 vales from it using CTRL key
Answers were Sorted based on User's Feedback
Answer / sesibhushan
set listObj=Browser("micclass:=Browser").Page
("micclass:=Page").WebList("micclass:=WebList","name:=XXXX"
listObj.select "#1"
listObj.ExtendSelect "#2"
listObj.ExtendSelect "#3"
listObj.ExtendSelect "#4"
Note: This will work for combobox also.
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / shiva
Sub ExtendSelect_Example()
'The following example uses the ExtendSelect method to sele
'Socks from a list of clothing after Jeans has already been
selected.
Browser("index").Page("Fill-Out Form_2").WebList("what-to-
wear").Select "Jeans"
Browser("index").Page("Fill-Out Form_2").WebList("what-to-
wear").ExtendSelect "Socks"
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sesibhushan
set listObj=Browser("micclass:=Browser").Page
("micclass:=Page").WebList("micclass:=WebList","name:=XXXX"
listObj.select "#1"
listObj.select "#2"
listObj.select "#3"
listObj.select "#4"
Note: This will work for combobox also.
| Is This Answer Correct ? | 2 Yes | 6 No |
How do we Access, retriew and edit the runtime objects in Automation Testing using QTP
what is a good testcase?
In QTP whether is it possible to call a function from one action to another action?
How to compare 2 excel files using QTP? How to compare 2 PDF files using QTP?
Did you face the problem, changing the properties of an object in Run Time?
how to know no.of mails in our g mail by using vb-script
tell me about regular expressions in QTP? where we use? give eample?
can u write Script to do Data Driven Testing throuh Externel & internel XL Sheet
in how many ways we can write the user defined functions one way i know that i.e storing it in .vbs another way i does not know my friend said that .qtf or something but start with q letter can any buddy knows about this
How will internal and external links be validated and updated? how often?
Did the scripts need lot of maintenance? If yes, why?
How to use reporter.report event in qtp ?