Permalink
Browse files

compact focus workaround down

  • Loading branch information...
1 parent dcc03ee commit 6c247e2bd42dc9c685373d4908612ee1f7d92420 @JonRowe committed Mar 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 6c247e2

Please sign in to comment.