ruby on rails - capybara does not find elements -
after upgrade rails 3 rails 4, feature specs using capybara , capybara webkit fail. capybara fails find elements, although within page.html or page.body.
some info:
a page.html.index('id="element"') returns number while page.all('#element') (or other finder method) not. not true elements, found.
page.body.index('id="assessment_title"')=> 55688 page.all("#assessment_title") => []
i have tried several versions of capabara gem.
a jquery selector on rendered page (via save_and_open_page) finds element. i using rspec 3, had working version before rails upgradei not sure go here anymore. help on next steps appreciated?
thanks, migo
ruby-on-rails rspec capybara
No comments:
Post a Comment