Method: Selenium::Client::GeneratedDriver#ignore_attributes_without_value

Defined in:
lib/selenium/client/legacy_driver.rb

#ignore_attributes_without_value(ignore) ⇒ Object

Specifies whether Selenium will ignore xpath attributes that have no value, i.e. are the empty string, when using the non-native xpath evaluation engine. You’d want to do this for performance reasons in IE. However, this could break certain xpaths, for example an xpath that looks for an attribute whose value is NOT the empty string.

The hope is that such xpaths are relatively rare, but the user should have the option of using them. Note that this only influences xpath evaluation when using the ajaxslt engine (i.e. not “javascript-xpath”).

‘ignore’ is boolean, true means we’ll ignore attributes without value at the expense of xpath “correctness”; false means we’ll sacrifice speed for correctness.


1381
1382
1383
# File 'lib/selenium/client/legacy_driver.rb', line 1381

def ignore_attributes_without_value(ignore)
    remote_control_command("ignoreAttributesWithoutValue", [ignore,])
end