Can we count no of similar objects on webpage?
Can we find no of (Count of) similar objects with some function directly on webpage?
For example : I have 5-6 checkbox with same name and with different index on my webpage. These number of checkboxes are dynamic. I want to see if I can count the number of checkboxes on the page everytime my script visits this page. with some function?
Thanks in advance.
Re: Can we count no of similar objects on webpage?
Try something like this
Set MyDescription = Description.Create()
MyDescription("html tag").Value = "INPUT"
MyDescription("type").Value = "checkbox"
Set Checkboxes = Browser("You Browser name").Page("your page name").ChildObjects(MyDescription)
NoOfChildObjs = Checkboxes.Count