When I fill forms using capybara and page opens in browser, the fields are empty. Is it n开发者_StackOverflow中文版ormal?
page.fill_in 'Email', :with => 'test@gmail.com'
save_and_open_page
It seems that filling stuff into a text field doesn't make it part of the DOM (specifically, the value
attribute of the <input> element), so it won't show up in the page you get.
So yes, it looks like this is normal indeed.
精彩评论