我想知道是否我錯過了某些東西或者是否發現了錯誤;希望別人能幫助。水豚找不到名稱中帶下劃線的元素
我在窗體上有很多字段。所有具有單個單詞名稱的人都可以找到並填充,沒有問題。所有具有多個單詞名稱的人都不會。這是預期的行爲?
例如:
fill_in "Something", :with=> "value"
工作
fill_in "Something Else", :with => "another"
不
我試圖將其更改爲:
fill_in "something_else", :with => "another"
和失敗過,同樣的消息
"cannot fill in, no text field, text area or password field with id, name, or label 'something_else'"
我想知道在這一點上,如果水豚期待_是邊界,所以它不能找到他們,如果他們有這樣的多詞。其他人遇到這個問題?有沒有修復?