Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove workaround for firefox behaviour, test page now has to have an…

… explicit height for firefox
  • Loading branch information...
commit dcc03ee0733130dd22d3eca7ee7d8a960f806080 1 parent 41b4625
@JonRowe authored
View
4 lib/capybara/selenium/node.rb
@@ -35,10 +35,6 @@ def set(value)
driver.browser.execute_script "arguments[0].value = ''", native
native.send_keys(value.to_s)
elsif self[:contenteditable]
- if native.text == ''
- #workaround for selenium raising an ElementNotVisible on empty elements
- driver.browser.execute_script "arguments[0].innerHTML = ' '", native
- end
#ensure we are focused on the element
script = <<-JS
var range = document.createRange();
View
2  lib/capybara/spec/views/with_js.erb
@@ -37,7 +37,7 @@
<p>
<div contenteditable='true' id='existing_content_editable'>Editable content</div>
- <div contenteditable='true' id='blank_content_editable'></div>
+ <div contenteditable='true' id='blank_content_editable' style='height: 1em;'></div>
</p>
<p>
Please sign in to comment.
Something went wrong with that request. Please try again.