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 to get the object property
How to add Dynamic Objects to Object repository?
General Ques : At What State u start Automating ? means at what stage we start writing QTP scripts ?
What is the difference between QTP 8.2 and QTP 9.2 ?
What are the automation metrice in your project?
can test automation improve test effectiveness?
Suppose i have given 10 test cases all the test cases should be automated?
anyone can explain about "Smart Identification" in QTP. what is the use of "Smart Identification" ???
IF we use batch testing.the result shown for last action only.in that how can i get result for every action.
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?
In a web page, one web table is present which is dynamic. In that table one of the column has links with the same inner text. write a script so that i need to click the third link.
What are the differences between qtp and winrunner?