Method: Selenium::Client::GeneratedDriver#allow_native_xpath
- Defined in:
- lib/selenium/client/legacy_driver.rb
#allow_native_xpath(allow) ⇒ Object
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.
‘allow’ is boolean, true means we’ll prefer to use native XPath; false means we’ll only use JS XPath
1365 1366 1367 |
# File 'lib/selenium/client/legacy_driver.rb', line 1365 def allow_native_xpath(allow) remote_control_command("allowNativeXpath", [allow,]) end |