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



A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL ..

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

A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL ..

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

A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL ..

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

Post New Answer

More QTP Interview Questions

Hi Recently I Attend one interview .The intervier ask on Question in QC 9.2 . The Qus was while ruuning the Batch RUNS scripts in test lab if defect will comes .The defect automaticly wants to genate . How to Configure in QC . Thank You Balaji

0 Answers  


what are the different kinds of frameworks in automation?

2 Answers   Accenture,


Define Error Pane of UFT?

0 Answers  


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

0 Answers  


What is iteration? How it is related to Test Results in QTP?

2 Answers  






How to make arguments optional in a function?

1 Answers   Crea,


HOW TO DO THE BATCH TESTING USING QTP?

8 Answers   CTS,


when we open flight reservation.at that time where we found synchronization point() and wait function().i m confused .i want this answer.

1 Answers  


What are the Application Functions available in QTP?

0 Answers  


What is the difference between byref and byval in qtp?

0 Answers  


How to record object in runtime. I am testing one Image website in which every time image change on home page.so if i records the image list but during running image get change, and QTP gives error

1 Answers  


can any body pls mail me latest FAQ's in QTP to my mailid btrintra@gmail.com....Thanks in advance

0 Answers  


Categories