Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Count number of webelement with specific names
#3
Solved: 10 Years, 9 Months, 4 Weeks ago
@ssvali : The code which you have posted will take much more time to execute and give the count coz it has to compare each element to check for PDF or XLS. Instead of this we can use regular expression which requires less time for execution.

Just update the line

Code:
Desc_Element("name").Value = ".*XLS.*"


with below line

Code:
Desc_Element("name").Value = ".*XLS.*|.*PDF.*"


Hope this will work for you.

Regards,
Ankesh
Reply


Messages In This Thread
RE: Count number of webelement with specific names - by Ankesh - 07-31-2012, 11:52 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)