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.

Answers were Sorted based on User's Feedback



i have 100 check box in a link,out of 100 check box in 25 check box their written qtp(any where i ..

Answer / tom chruise

you need to create child object then use of GetRO fetch the
expected value

Is This Answer Correct ?    2 Yes 0 No

i have 100 check box in a link,out of 100 check box in 25 check box their written qtp(any where i ..

Answer / 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

i have 100 check box in a link,out of 100 check box in 25 check box their written qtp(any where i ..

Answer / soumya

plzzz help me how i find this answer

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Automation Testing AllOther Interview Questions

Tell us how can you create html test report from your test script?

0 Answers  


Which institute is good for testing tools course in HYD?

0 Answers  


What are the pre-requisites to start automation testing?

0 Answers  


What kinds of annotations are used in testng?

0 Answers  


all clients are using at once if any problem raise?

0 Answers   Mind Tree,






Tell me what is automation testing?

0 Answers  


Do you know how to verify if the checkbox/radio is checked or not?

0 Answers  


how many steps in functional testing?

4 Answers   TCS,


Tell us how can we handle web-based pop-up?

0 Answers  


What is Sikuli?

0 Answers  


Tell us which package can be imported while working with webdriver?

0 Answers  


Are applications developed in Java, html, servletts client server or web based..

2 Answers   Value Labs,


Categories