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


Please Help Members By Posting Answers For Below Questions

What type of scenarios can't be automated?

557


What is junit? And what is junit annotation?

518


On what factors can you map the success of automation testing?

547


suggest me the free online books on software testing?

1506


Tell me what is intellij?

686






Tell me what is the purpose of getoptions() method?

520


Write a short compiled module which selects random numbers. and what function is used to call your customized compiled module?

516


Explain me what kinds of annotations are used in testng?

512


List down the primary features of a good automation tool?

508


What u mean by infrgistics control (What is infrgistics Controls)?

1597


Is automation testing a black box testing or white-box testing?

510


What are the drawbacks of test automation?

577


Give some examples for performance test tools?

603


VSTET (Visual Studio Team Edition for Testers) which is in TFS (Team Foundation Server) - In what way is VSTET better than QTP?

3197


What are the attributes of a good framework?

571