Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Three filters to get object count
#2
Solved: 11 Years, 4 Months, 1 Week ago
you should look in the page child objects not in the page.object also you have not serached for webElement object.
try the code below
Code:
Set Desc = Description.Create()
Desc("micclass").Value = "WebElement"
Desc("html tag").Value = "SPAN"
Desc("X").value = 180

Set Doc = Browser("micClass:=Browser").Page("micClass:=Page").ChildObjects(Desc)

MsgBox "Number of Edits: " & Doc.Count

Sorry for the typo, Please read Number of webelements in the last statement.

Reply


Messages In This Thread
Three filters to get object count - by SBsteven - 11-05-2009, 03:19 AM
RE: Three filters to get object count - by Saket - 11-05-2009, 10:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Count the number of times the object appeared in the run yonobev 8 5,417 10-08-2009, 02:58 PM
Last Post: Saket
  Diff. between page checkpoint link count and childobj count anemuday 0 2,253 07-20-2008, 10:11 PM
Last Post: anemuday

Forum Jump:


Users browsing this thread: 2 Guest(s)