Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Cross-browser clear input field
Browse files Browse the repository at this point in the history
  • Loading branch information
txels committed Jul 21, 2016
1 parent 75d364c commit 1c0aed1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#


__version__ = '0.2.8dev-4'
__version__ = '0.2.9'

DEVSERVER_PORT = 8120 # django devserver for internal acceptance tests

Expand Down
3 changes: 1 addition & 2 deletions src/sst/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,7 @@ def write_textfield(id_or_elem, new_text, check=True, clear=True):
# clear field with send_keys(), don't use clear() (see
# http://code.google.com/p/selenium/issues/detail?id=214 for rationale)
if clear:
send_keys_select_all(textfield)
textfield.send_keys(keys.Keys().DELETE)
textfield.clear()

if isinstance(new_text, unicode):
textfield.send_keys(new_text)
Expand Down

0 comments on commit 1c0aed1

Please sign in to comment.