Question

I found the wicked-good-xpath that can work with Selenium. It could find XPath faster.

But I don't know how to use it in Selenium WebDriver with C#?

Could you give me some sample code?

Thanks in advance.

Was it helpful?

Solution

Selenium already uses it in the IEDriver:

https://code.google.com/p/selenium/source/browse/cpp/IEDriverServer/CHANGELOG (See version v2.26.0.1)

An XPath library is only used as a fall back when the browser doesn't have a native XPath implementation (I'm pretty sure IE is the only one that doesn't have a native implementation).

A native implementation will always be the fastest.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top