lib/cucumber/pickles/helpers/node_finders.rb in pickles-0.1.4 vs lib/cucumber/pickles/helpers/node_finders.rb in pickles-0.1.5
- old
+ new
@@ -44,14 +44,14 @@
el_alias = el_alias.to_s
if xpath = Pickles.config.xpath_node_map[el_alias]
xpath = xpath.respond_to?(:call) ? xpath.call(locator) : xpath
- search_params = [:xpath, xpath, wait: 0]
+ search_params = [:xpath, xpath, wait: 0, visible: false]
elsif css = Pickles.config.css_node_map[el_alias] || el_alias
css = css.respond_to?(:call) ? css.call(locator) : css
- search_params = [:css, css, text: locator, wait: 0]
+ search_params = [:css, css, text: locator, wait: 0, visible: false]
end
if index
within.all(*search_params)[index - 1]
else