1
Element must be user-editable in order to clear it (Selenium::WebDriver::Error::InvalidElementStateError) (eval):2:in `attach_file'「元素必須是用戶可編輯的,以清除它」錯誤
當我跑我的功能,有attach_file
一步,它給了我這個錯誤。
這裏是我的特點失敗行:
And I attach the file "images/cakes/1.jpeg" to "file_field"
,這裏是我的步驟定義:
When /^(?:|I)attach the file "([^"]*)" to "([^"]*)"(?:
within "([^"]*)")?$/ do |path, field, selector|
with_scope(selector) do
attach_file(field, path)
end
end
是否有任何身體知道是什麼問題?
測試頁也沒有變化嗎? 'file_field'是一個''元素,對吧? – 2012-07-13 23:52:21
頁面沒有改變。 – user1519263 2012-07-16 20:50:03