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

how to write the descriptive programming in QTP for loginwindow.without using Step generator,object repository for referecnes

4 Answers   STC,


Hey friends i m facing a problem when i m running my script in qtp it waits for about 5-10 secs before starting execution why it is so can any one solve my problem .Previously it was running fine

1 Answers  


If enter into interviewer room? how u introduce with him. with shakehand or waht?

2 Answers  


Give a comment on Regular Expressions using QTP?

4 Answers  


images are dynamically changes how to compare two images with out using the bitmap

0 Answers   Hexaware,






Why a framework is needed?? Plaese post your answers ASAP

3 Answers   ACC, FD, Mphasis,


I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me

0 Answers  


Can you give me the code to calculate the total number of Links using the child object in the web page..? is there any other way to calculate number of links with out using the Child objects.??

2 Answers   DST Global Solutions,


What are benefits of qtp?

0 Answers  


Error handling

3 Answers   Wipro,


What is a quick test professional?

0 Answers  


What are the types of Object Repository’s in QTP?

2 Answers   Crea,


Categories