Ask a Question

XPath is really slow

Senior Member

XPath is really slow

When I spy the DOM I see a bunch of "Panels" in the object hierarchy. 


So I am trying to use FindChildByXpath instead but its taking in excess of 10 seconds to find an element. 


Are there any plans to improve the performance OR better yet do you guys recommend a better way to find web elements using the html attributes/tags (especially angular) 


I am on version 2.0.0




Community Hero



My recommendation is to use .Find()/.TryFind() methods provided by TestLeft ( instead of searching by XPath/CSS.

The former methods seem to be faster (though I never did explicit measurements), more flexible and usually it is more clear what test code searches for when .Find()/.TryFind() are used.

  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: