change for new capybara
This commit is contained in:
parent
bb4c265337
commit
c3d0a7a96c
|
@ -180,7 +180,7 @@ def within_any(search, &block)
|
|||
|
||||
nodes.each_with_index do |node, index|
|
||||
begin
|
||||
within("#{search}:eq(#{index + 1})", &block)
|
||||
within("#{search}:nth-child(#{index + 1})", &block)
|
||||
return true
|
||||
rescue RSpec::Expectations::ExpectationNotMetError, Capybara::ElementNotFound
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue