开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜