Read more

Capybara 0.3.9 Bug: Chaining .find to scope doesn't work

Deleted user #6
March 20, 2013Software engineer

The following code doesn't work like expected:

page.find(css_selector).find(other_css_selector)
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

The second .find will search the whole dom instead of a scope.

Rumor has it this is fixed in Capybara 0.4.1.

Posted to makandra dev (2013-03-20 17:31)