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

what are the main differences between keyword driven frame work and data driven frame work?

1 Answers   UHG,


Can I import a excel sheet in Action1 datatable? How?

2 Answers   IBM,


how u will evaluate the tool for test automation?

0 Answers   SysArc,


Hi all. Could anyone tell me the difference between an Action and a Function in QTP. Thanks in advance and Merry Christmas.

3 Answers   IBM,


Can we add the function library directly from scripting in qtp instead of adding from resource tab?

5 Answers   IBM,






why can't you use excel directly in qtp. why we want to import excel data into Datatable.

1 Answers   BoA,


What issues come up in test automation, and how do you manage them?

0 Answers  


Explain the checkpoint in qtp?

0 Answers  


Explain process of smart Identification in QTP?

0 Answers  


Hoe we can export TEST RESUALT IN to XL-sheet?

1 Answers   IBM,


Write a script to delete a specific row in a webtable.

2 Answers   Tech Mahindra,


describe some problem that u had with automation testing tool?

3 Answers  


Categories