first() was working in version 2.15.0 as expected, but after updating cucumber 2.4.0 to 3.1.2 it doesn't work this way anymore.
first works if we add the param :minimum=>1 to it. If i leave it out, it will return nil even though the element is there.
first("div", :minimum=>1)
This is our Capybara dependencies in the gemfile.lock
capybara (2.15.0) addressable mini_mime (>= 0.1.3) nokogiri (>= 1.3.3) rack (>= 1.0.0) rack-test (>= 0.5.4) xpath (~> 2.0)
Aucun commentaire:
Enregistrer un commentaire