2012-07-11 44 views
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 

是否有任何身體知道是什麼問題?

+0

測試頁也沒有變化嗎? 'file_field'是一個''元素,對吧? – 2012-07-13 23:52:21

+0

頁面沒有改變。 user1519263 2012-07-16 20:50:03

回答

2

水豚有問題。你需要更新到1.1.2。請參閱github

+0

工作正常。謝謝! – DiegoSalazar 2013-01-30 01:30:44

相關問題