XPath is really slow
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
My recommendation is to use .Find()/.TryFind() methods provided by TestLeft (https://support.smartbear.com/testleft/docs/using/creating-tests/object-identification/understanding...) 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 Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
