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

Answers were Sorted based on User's Feedback



If there are 100 checkboes in a page then how can we&nb..

Answer / brahma.quality

systemutil.Run "iexplore","http://www.computerhope.com/jargon/c/checkbox.htm"
Set odesc=description.Create
odesc("micclass").value="webcheckbox"
Set Child= Browser("title:=What.*").Page("title:=What.*").ChildObjects(odesc)
CheckboxesCount= Child.count

For i=0 to CheckboxesCount-1
Child(i).set "on"  ' clicks all checkboxes in the given page
Next

Is This Answer Correct ?    13 Yes 0 No

If there are 100 checkboes in a page then how can we&nb..

Answer / brahma.quality

systemutil.Run "iexplore","http://www.computerhope.com/jargon/c/checkbox.htm"
Set odesc=description.Create
odesc("micclass").value="webcheckbox"
Set Child= Browser("title:=What.*").Page("title:=What.*").ChildObjects(odesc)
CheckboxesCount= Child.count
For i=0 to CheckboxesCount-1
Child(i).set "on"
Next

Is This Answer Correct ?    8 Yes 0 No

If there are 100 checkboes in a page then how can we&nb..

Answer / dinesh1433

for i=0 to 100

Browser("index:=0").page("index:=0").webcheckbox("index:="&i).set "on"

Next

Is This Answer Correct ?    2 Yes 0 No

If there are 100 checkboes in a page then how can we&nb..

Answer / pravati

set obj=Description.create()
obj("micclass").value="Webcheckbox"
set checkboxobj=Browser("micclass:=Browser").page("micclass:=page").childobjects(obj)
msgbox checkboxobj.count
for i=0 to checkboxobj.count -1
checkboxobj(i).set "on"
Next

Is This Answer Correct ?    0 Yes 0 No

If there are 100 checkboes in a page then how can we&nb..

Answer / sunita

set obj=description.create()
obj(micclass).value="webcheckbox"
set checkboxobj=Browser("micclass:=Browser").page("micclass:=page").childobject("obj")
msgbox checkboxobj.count
checkboxobj(i).set "on"

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

I want to clear the webedit field without using set"" in qtp script

1 Answers  


How to compare the two strings?

2 Answers  


With what extension you can save the list of tests in a file to run in test batch runner?

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  


how to create external data table?

1 Answers   TCS,






how can we handle exceptional handling in qtp

6 Answers   NIIT,


What does SPLIT and JOIN commands do in Vbscript?

6 Answers   Ordain Solutions, UBC,


How we can capture the dynamic object ex:(rotating globe) in the web page with time gaph is 5 sec..

3 Answers   IBM,


How to supress warnings from the "Test results page"?

6 Answers   BirlaSoft,


1.what is the difference between childobjects and child items in qtp? 2.what is difference between a class and function? 3.can u convert ustimings to indian timings using vbscript? 4.i have scripts in one machine.can i run those scripts in another machine.how?

2 Answers   Genpact, Infosys, Symantic Space, TCS,


Hi Guys, I tried to install java add-in for QTP 9.5 after the whole installation but it didn't install but then i also found in documentation saying that winrunner7.6 patch for java plugin would work fine with QTP. But when i tried to install from winrunner7.6 it asks me for the path of winrunner So my question is are we supposed to install winrunner for java add in to work on QTP. Please suggest me

1 Answers  


How can i store runtime value through vb script while using qtp

1 Answers  


Categories