Element must be user-editable in order to clear it. (Selenium::WebDriver::Error::InvalidElementStateError) (eval):2:in `attach_file'
===

When I run my feature that has attache_file step in it, it gives me this error.

P.S. It used to work and then I updated my chromedriver.


Here is the line of my feature that fails:

And I attach the file "images/cakes/1.jpeg" to "file_field"

and here is my step definition:

When /^(?:|I )attach the file "([^"]*)" to "([^"]*)"(?: 

within "([^"]*)")?$/ do |path, field, selector|

  with_scope(selector) do

    attach_file(field, path)

  end

end

Does any body know what the problem is?