隐藏字段的测试用例不适用于黄瓜 [英] test case for hidden field is not working with cucumber
本文介绍了隐藏字段的测试用例不适用于黄瓜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
fill_in "user_role", :with => @visitor[:role]
这是检查简单的输入字段,但输入字段隐藏它不工作对于隐藏字段有任何其他方法。
This is checking simple input field but input field with hidden it is not working for that is there any other method for hidden field.
推荐答案
hidden_field = find :xpath, "//input[@id='id_of_hidden_field']"
hidden_field.set "hello world"
这篇关于隐藏字段的测试用例不适用于黄瓜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文