Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

compact focus workaround down

  • Loading branch information...
commit 6c247e2bd42dc9c685373d4908612ee1f7d92420 1 parent dcc03ee
@JonRowe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/capybara/selenium/node.rb
View
2  lib/capybara/selenium/node.rb
@@ -38,7 +38,7 @@ def set(value)
#ensure we are focused on the element
script = <<-JS
var range = document.createRange();
- range.setStart(arguments[0].childNodes[0], 0);
+ range.setStart(arguments[0], 0);
window.getSelection().addRange(range);
JS
driver.browser.execute_script script, native
Please sign in to comment.
Something went wrong with that request. Please try again.