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 kind of tests should not be automated?

1106


Kindly let me know how to setup JMeter for functionality testing of a Web application.. The apache help doc is good but i m little confused with it... :(

2272


Tell me what criteria do you consider for automating a test?

1016


What is test automation or automation testing?

1020


Can you tell some good coding practices while automation?

1091


Differentiate between hdam and hidam database?

1019


What is the deference between automation tools and management tools?

1115


Can you achieve 100% automation?

1035


Tell us what automation tools could be used for post-release validation with continuous integration?

1089


What is self-referencing constraint in mainframe development?

1011


how to re-install QTP 11.0 trial version

2711


What all different approaches can be used for designing an automation solution?

970


Tell us how do you get the width of the textbox?

1015


2. How you will collect a module from the version?

2472


Have you completed the cps exam? Which one?

1021