Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Count number of webelement with specific names
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Try this...

Code:
Set Desc_Element = Description.Create()
Desc_Element("micclass").value = "WebElement"

Set Element= Browser("XXX").Page("XXX").WebTable("XXX").childobjects(Desc_Element )

For i = Lbound(Element) to Ubound(Element)

    objname = Element(i).GetROProperty("name")
    
    If instr(1,objname,"XLS") = 1 Then
        Cnt = Cnt + 1
    End If

    If instr(1,objname,"PDF") = 1 Then
        Cnt = Cnt + 1
    End If

Next

Msgbox "Total No. of Elements : = " & Cnt
Reply


Messages In This Thread
RE: Count number of webelement with specific names - by ssvali - 07-30-2012, 04:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,363 03-02-2020, 09:33 PM
Last Post: Swishy70
Question How to open IE/Chrome/Firefox with a specific size? DarkestAmadeus 0 2,051 07-19-2018, 05:38 AM
Last Post: DarkestAmadeus
Exclamation WebElement("WebElement").Click is not working sia sharma 7 23,959 09-28-2016, 08:58 PM
Last Post: supputuri
  VB Script to count number of links in a web page. Suma Parimal 4 25,281 07-01-2015, 12:59 PM
Last Post: govind
  Check specific links of a webpage rocky9 1 2,716 06-11-2015, 06:23 PM
Last Post: venkatesh9032

Forum Jump:


Users browsing this thread: 2 Guest(s)