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
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 |
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 |
Tell us how can you create html test report from your test script?
Which institute is good for testing tools course in HYD?
What are the pre-requisites to start automation testing?
What kinds of annotations are used in testng?
all clients are using at once if any problem raise?
Tell me what is automation testing?
Do you know how to verify if the checkbox/radio is checked or not?
how many steps in functional testing?
Tell us how can we handle web-based pop-up?
What is Sikuli?
Tell us which package can be imported while working with webdriver?
Are applications developed in Java, html, servletts client server or web based..