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 |
Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?
where is the bitmap checkpoint be saved
What are the Application Functions available in QTP?
WHAT IS OBJECT REPROSITORY?
What is LoadRunner?
How to compare 2 excel files using QTP? How to compare 2 PDF files using QTP?
.qfl extension for which file? where vl use it
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
What is the difference between Action and Function.? when both has the same functionaltiy, when do we choose Action and when do we choose Function..??
3 Answers DST Global Solutions,
Can any body explain me how to prepare QTP frame work with an example?? alexander.gdk@gmail.com
What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know.
What type of framework you are using in your company and explain it?