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|
|
nodes.each_with_index do |node, index|
|
||||||
begin
|
begin
|
||||||
within("#{search}:eq(#{index + 1})", &block)
|
within("#{search}:nth-child(#{index + 1})", &block)
|
||||||
return true
|
return true
|
||||||
rescue RSpec::Expectations::ExpectationNotMetError, Capybara::ElementNotFound
|
rescue RSpec::Expectations::ExpectationNotMetError, Capybara::ElementNotFound
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue