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 the line of code webdriver driver = new firefoxdriver();.?
what r the diffence between QTP 8.2 & QTP9.0?
Tell us how to select a value in a dropdown?
What is open source tool and give example?
What are the advantages of the automation framework?
Can anybody suggest me which Functional tool will support SOLARIS(QTP,WinRunner,Rational.....)
How do you select the 2nd item in a List box or drop down through selenium RC (Java)
IS DATA INTEGRITY TESTING AND INTEGRATION TESTING ONE AND THE SAME?IF DIFF CAN U SPECIFY THE DIFFERENCES
Any kind of test which you think should not be automated?
Describe common problems of test automation.
Explain me how do you send enter/tab keys in webdriver?
What are the references for TSL functions.? Could anybody suggest me recommended book for Test Script Language.