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 |
Explain what is the difference between findelement () and findelements ()?
Are reusable test cases a big plus of automated testing and explain why.
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 are the advantages of the automation framework?
What are the main attributes of test automation?
which tools is the best in Automation
what is dynamic window and dynamic model ? (worksoft automation tool)
Why we use Junit and Jmeter? Suggest some sites where we can get more information on these two Tools?
What is junit? And what is junit annotation?
Tell us what is the difference between single slash (/) and a double slash ( //) in xpath?
What is the process of Automation Testing?
If I have given names to different DataTable columns and those column names are stored in a variable, then passing that variable to the datatable how can i Enter different values in those columns listed in that variable?? Please explain me with an example.I am not getting it.