Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between close and quit command?

1075


Explain me what is a framework and what are the frameworks available in rc?

974


Differentiate between hdam and hidam database?

964


Tell us how could you explain the main difference between webdriver and rc?

1014


What are the frameworks available in rc?

1177


What are the different types of scripting techniques for automation testing?

1029


What are the various kinds of frameworks that can be used in software automation testing?

967


What is the major difference between Acceptance test , Functional test , Usability test and Performance test with special reference to auotomotive domain

2037


What is the purpose of deselectall() method?

1033


What are the 5 common software development problems solutions?

1018


When will you automate a test?

1055


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)

5435


Is automation testing a black box testing or white-box testing?

979


List down the primary features of a good automation tool?

1031


why we cannot apply check points in compile modules?

2212