Skip to content

allowNativeXpath(UI Automation - Manipulation)

Compatible with:
  • Purpose
  • Specifies whether Selenium should use the native in-browser implementation of XPath (if any native version is available); if you pass "false" to this function, we will always use our pure-JavaScript xpath library. Using the pure-JS xpath library can improve the consistency of xpath element locators between different browser vendors, but the pure-JS version is much slower than the native implementations.
  • Syntax
  • allowNativeXpath(allow)
  • Target
  • allow - boolean, true means we'll prefer to use native XPath; false means we'll only use JS XPath
  • Value
  • N/A
  • Return Value
  • N/A
 
 

Feedback and Knowledge Base