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 type of scenarios can't be automated?
What is junit? And what is junit annotation?
On what factors can you map the success of automation testing?
suggest me the free online books on software testing?
Tell me what is intellij?
Tell me what is the purpose of getoptions() method?
Write a short compiled module which selects random numbers. and what function is used to call your customized compiled module?
Explain me what kinds of annotations are used in testng?
List down the primary features of a good automation tool?
What u mean by infrgistics control (What is infrgistics Controls)?
Is automation testing a black box testing or white-box testing?
What are the drawbacks of test automation?
Give some examples for performance test tools?
VSTET (Visual Studio Team Edition for Testers) which is in TFS (Team Foundation Server) - In what way is VSTET better than QTP?
What are the attributes of a good framework?