lib/capybara/poltergeist/client/node.coffee in poltergeist-1.0.1 vs lib/capybara/poltergeist/client/node.coffee in poltergeist-1.0.2
- old
+ new
@@ -52,7 +52,10 @@
isEqual: (other) ->
@page == other.page && this.isDOMEqual(other.id)
set: (value) ->
this.focusAndHighlight()
+ # Sending backspace to clear the input
+ # keycode from: https://github.com/ariya/phantomjs/commit/cab2635e66d74b7e665c44400b8b20a8f225153a#L0R370
+ @page.sendEvent('keypress', 16777219)
@page.sendEvent('keypress', value.toString())
this.blur()