i have 100 check box in a link,out of 100 check box in 25
check box their written qtp(any where i dont know),i have to
select first check box where 1st qtp found.
Answer Posted / boomi
Hi below code is the answer. You can make it as a function if you want to use this in multiple places.
Set objDesc = Description.Create()
objDesc("ClassName").Value = "WebCheckBox"
Set objText = ObjHierarchy.ChildObjects(objDesc)
For intItem = 1 To objText.Count - 1
strChkVal = ObjHierarchy.WebCheckBox("index:=" & intItem).GetROProperty("value")
If (StrComp(strChkVal, "QTP", vbTextCompare) = 0)
ObjHierarchy.WebCheckBox("index:=" & intItem).Click
Exit For
End If
Next
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What kind of tests should not be automated?
Kindly let me know how to setup JMeter for functionality testing of a Web application.. The apache help doc is good but i m little confused with it... :(
Tell me what criteria do you consider for automating a test?
What is test automation or automation testing?
Can you tell some good coding practices while automation?
Differentiate between hdam and hidam database?
What is the deference between automation tools and management tools?
Can you achieve 100% automation?
Tell us what automation tools could be used for post-release validation with continuous integration?
What is self-referencing constraint in mainframe development?
how to re-install QTP 11.0 trial version
What all different approaches can be used for designing an automation solution?
Tell us how do you get the width of the textbox?
2. How you will collect a module from the version?
Have you completed the cps exam? Which one?