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
What is the difference between close and quit command?
Explain me what is a framework and what are the frameworks available in rc?
Differentiate between hdam and hidam database?
Tell us how could you explain the main difference between webdriver and rc?
What are the frameworks available in rc?
What are the different types of scripting techniques for automation testing?
What are the various kinds of frameworks that can be used in software automation testing?
What is the major difference between Acceptance test , Functional test , Usability test and Performance test with special reference to auotomotive domain
What is the purpose of deselectall() method?
What are the 5 common software development problems solutions?
When will you automate a test?
Program/pseudo code on FIFO? Input a string and make sure that output is in FIFO manner. Eg, Enter 'John Dave' as input and output should be 'John Dave' not 'Dave John'. (inbuilt functions like push, pop were given)
Is automation testing a black box testing or white-box testing?
List down the primary features of a good automation tool?
why we cannot apply check points in compile modules?