How to fill hidden field with Capybara?

后端 未结 4 742
囚心锁ツ
囚心锁ツ 2020-12-13 23:06

I\'ve already found that when I want to set value to text field, text area or password field, I can use id, name or label as something in fill_in somethin

4条回答
  •  失恋的感觉
    2020-12-13 23:42

    There are many ways to achieve the same result. The one I like the most is:

    first('input#id.class', visible: false).set("your value")
    

提交回复
热议问题