Write QTP sample code to count number of check boxes in a web application

Showing Answers 1 - 3 of 3 Answers

akothuru

  • Sep 9th, 2008
 

To Count WebCheckboxes in Webpage


Set oDesc = Description.Create()

oDesc("Class Name").Value = "WebCheckBox"


' Get a collection of Checkboxes


Set oCollection = Browser(?name:=test?).Page(?title:=test?).ChildObjects(oDesc)

ItemCnt = oCollection.Count-1

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions