Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capybara: Filled-in forms and save_and_open_page

When I fill forms using capybara and page opens in browser, the fields are empty. Is it normal?

page.fill_in 'Email', :with => '[email protected]'
save_and_open_page
like image 533
Ildar Avatar asked Mar 31 '11 00:03

Ildar


1 Answers

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.

like image 98
Jo Liss Avatar answered Nov 15 '22 23:11

Jo Liss