Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Three filters to get object count
#4
Solved: 10 Years, 9 Months, 2 Weeks ago
I finally have the answer. After posting on a few message forums and some Google searching, here is the code that works..YAY!

==========================================================
Code:
Dim oDesc        'Description Object
Dim colObject    'Object Collection

    Set oDesc = Description.Create
    oDesc("micclass").Value = "WebElement"
    oDesc("html tag").Value = "SPAN"
    oDesc("x").Value = 180

Set colObject = Browser("micClass:=Browser").Page("micClass:=Page").ChildObjects( oDesc )

'Retrieve the count
iCount = colObject.Count

msgbox iCount
=========================================================

SBsteven
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
RE: Three filters to get object count - by SBsteven - 11-05-2009, 10:57 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)