I’ve got Capybara installed on Rails but, if I drop into the debugger in my steps.rb file, and check out the contents of page.body it’s always empty.
Completely clueless how to proceed.
Should I check if Capybara is loaded in the environment – if so, how?
Should I initialize Capybara somewhere – if so, how?
Did you visit your page? Sorry, I know it sounds silly but it’s all I can think of given the above information. Can you try page.find(‘body’) work instead?
Like this: