开发者

Capybara: Filled-in forms and save_and_open_page

开发者 https://www.devze.com 2023-02-21 02:37 出处:网络
When I fill forms using capybara and page opens in browser, the fields are empty. Is it n开发者_StackOverflow中文版ormal?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消