Skip to content

Commit

Permalink
Update History.md and rapid set length
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Mar 29, 2020
1 parent c9194ce commit 8691568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions History.md
Expand Up @@ -3,10 +3,8 @@ Relesae date: unreleased

### Added

* Support `delay` setting on click and right_click with Selenium

# Version 3.31.1
Release date: unreleased
* Support `delay` setting on click with Selenium
* Implement rapid set for values longer thn 30 characters in text fields with Selenium

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/selenium/node.rb
Expand Up @@ -279,7 +279,7 @@ def set_text(value, clear: nil, rapid: nil, **_unused)
send_keys(*clear, value)
else
driver.execute_script 'arguments[0].select()', self unless clear == :none
if rapid == true || (value.length > 50 && rapid != false)
if rapid == true || (value.length > 30 && rapid != false)
send_keys(value[0..3])
driver.execute_script 'arguments[0].value += arguments[1]', self, value[4...-3]
send_keys(value[-3..-1])
Expand Down

0 comments on commit 8691568

Please sign in to comment.