jnicklas/capybara — Issue #541: attach_file broken with selenium-webdriver 2.12.2
Author: thijsc
Created: 2011-11-14 09:38:56+00:00
State: open

Calling attach_file in capybara 1.1.1 in combination with selenium-webdriver 2.12.2 fails. In selenium-webdriver 2.10 this was still working correctly.

Stacktrace from my specs:

```
1) Upload a file
Failure/Error: attach_file 'File', File.join(Rails.root, 'spec/images/stub.jpg')
Selenium::WebDriver::Error::UnhandledError:
Element cannot contain user-editable text
# [remote server] resource://fxdriver/modules/atoms.js:831:in `unknown'
# [remote server] resource://fxdriver/modules/atoms.js:1037:in `unknown'
# [remote server] resource://fxdriver/modules/atoms.js:7108:in `unknown'
# [remote server] file:///var/folders/g_/5rn1yvxn46q1dk1n56d1kg2w0000gn/T/webdriver-profile20111114-87624-1mgzhzg/extensions/fxdriver@googlecode.com/components/driver-component.js -> file:///var/folders/g_/5rn1yvxn46q1dk1n56d1kg2w0000gn/T/webdriver-profile20111114-87624-1mgzhzg/extensions/fxdriver@googlecode.com/components/wrappedElement.js:260:in `unknown'
# [remote server] file:///var/folders/g_/5rn1yvxn46q1dk1n56d1kg2w0000gn/T/webdriver-profile20111114-87624-1mgzhzg/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:306:in `unknown'
# [remote server] file:///var/folders/g_/5rn1yvxn46q1dk1n56d1kg2w0000gn/T/webdriver-profile20111114-87624-1mgzhzg/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:320:in `unknown'
# [remote server] file:///var/folders/g_/5rn1yvxn46q1dk1n56d1kg2w0000gn/T/webdriver-profile20111114-87624-1mgzhzg/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:197:in `unknown'
# (eval):2:in `attach_file'
```