If there are 100 checkboes in a page then how can we select 10th & 11th & 14th chexkboxes at once through descriptive programing in QTP using vb script.
Please send the answers...

Answer Posted / veeru

Below code saves sometime

set ocheck=description.create
ocheck("micclass").value="WebCheckbox"
set objCheckboxes = browser("Creationtime:=0").page("micclass:=page").childobjects(ocheck)
objCheckboxes(9).Set "ON"
objCheckboxes(10).Set "ON"
objCheckboxes(13).Set "ON"

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how u will evaluate the tool for test automation?

1369


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

1576


Describe how Smart Identification is used

1695


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

985


what you mean by artifact,milestone...

1494






What is the architecture of your project? Can any one answer for this question plz........

1412


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1627


Define Environment Variable in UFT and its uses?

604


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1371


What is keyword driven framework?

618


How do you capture tooltip using QTP?

629


Why is action split used by qtp?

556


If created one virtual object? Next time I changed the window position will it work?

578


Describe the differences between functions and actions in UFT?

608


how can we compare descriptive programing with a regular expression

1923