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 |
In Manual testing , can u prpare bug report in TD?
Why we have to import data from excel sheet to data table?becoz v can directly use test data directly from xl know. can u all pls explain me clearly
What is the difference between Recover Scenario(screen) and on Error Resume Next(code)
Differenece betwen Project and product ? when company need project or product?
What is action split and the purpose of using this in qtp?
Explain the concept of object repository and how quicktest professional recognises objects?
Key word driven framework
Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.
Explain about invoking of application?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
what is difference between calling a function and reusing an action?
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.