Skip to content

Commit

Permalink
Merge branch 'selenium_2.48'
Browse files Browse the repository at this point in the history
* selenium_2.48:
  fix contenteditable set for selenium 2.48
  • Loading branch information
twalpole committed Oct 8, 2015
2 parents 65ec2d5 + 2f71bb6 commit 89d5042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/capybara/selenium/node.rb
Expand Up @@ -58,6 +58,7 @@ def set(value, fill_options={})
#ensure we are focused on the element
script = <<-JS
var range = document.createRange();
arguments[0].focus();
range.selectNodeContents(arguments[0]);
window.getSelection().addRange(range);
JS
Expand Down

0 comments on commit 89d5042

Please sign in to comment.