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.
Answer Posted / 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 |
Post New Answer View All Answers
Do you know what is functional testing?
What are the different types of testing framework techniques?
Tell us how to select a value in a dropdown?
pls tell me any open source test case managment tool ? its urgent.also tell me any autmation testing tool also for functional testing?
What type of scenarios can't be automated?
What are the steps to perform Load and Stress testing on a Website? What resources do I need to do this? Please advise. Thanks in advance.
Why do you prefer selenium automation tool?
What is the deference between automation tools and management tools?
How do you identify the test cases which are suitable for automation?
How do we Test the C++ and Unix Application Using Automated Tool.
Name a couple of standard web function found in the function generator?
Where you have applied oops in automation framework?
how to map requirements& test cases in quality center ???
Tell us what is the difference between getwindowhandles() and getwindowhandle()?
Where to maintain information like login, password and url?