0
HTML:如何使用Poltergeist選擇與水豚的單選按鈕?
<div id='survey'>
Name:<input type='text' name='name'><br>
Like sushi?<input type="radio" name="sushi" value="yes">Yes
<input type="radio" name="sushi" value="no">No
</div>
規格:
within 'div#survey' do
fill_in 'name', with:'Joe Brown'
choose 'no'
end
這引發異常:
Failure/Error: choose 'no'
Capybara::ElementNotFound:
Unable to find radio button "no"
如何選擇單選按鈕 「不」?
我希望我已經嘗試過。 '無法找到單選按鈕「否」' – 2014-09-30 20:59:51