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
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 |
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 |
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 |
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 |
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 |
what are the main differences between keyword driven frame work and data driven frame work?
Can I import a excel sheet in Action1 datatable? How?
how u will evaluate the tool for test automation?
Hi all. Could anyone tell me the difference between an Action and a Function in QTP. Thanks in advance and Merry Christmas.
Can we add the function library directly from scripting in qtp instead of adding from resource tab?
why can't you use excel directly in qtp. why we want to import excel data into Datatable.
What issues come up in test automation, and how do you manage them?
Explain the checkpoint in qtp?
Explain process of smart Identification in QTP?
Hoe we can export TEST RESUALT IN to XL-sheet?
Write a script to delete a specific row in a webtable.
describe some problem that u had with automation testing tool?