元素必须是用户可编辑的才能清除它 (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
有没有人知道问题出在哪里?