@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
with below line
Hope this will work for you.
Regards,
Ankesh
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