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 |
How do you start Selenium RC?
We have a testing assignment should be test in very short span.Do you think automated tests are the best solution for this type of scenario?
What is a ‘test plan’? What is a ‘test case’?
How can a mainframe application be tested using Automation tools. I mean which is the best tool to do Mainframe testing?
What generally is the structure of a framework?
What are pros and cons of automating tests at ui layer?
When do you prefer manual testing over automation testing?
How could you explain the main difference between webdriver and rc?
Name the frameworks that are used in software automation testing?
Where you have applied oops in automation framework?
What is hybrid automation?
6. Who will write the use case? 7. What is web based application?