Permalink
Browse files

oops that last check in probably broke the build... heres a fix

  • Loading branch information...
1 parent 4d5b4e1 commit 9d4089766bea1d4f566a1fb80a7c42887a5315d4 @j1z0 j1z0 committed Feb 16, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −2 src/Selenium2Library/keywords/_element.py
  2. +0 −1 test/acceptance/keywords/textfields.txt
  3. +1 −1 test/run_tests.py
@@ -362,9 +362,10 @@ def press_key(self, locator, key):
"""
if key.startswith('\\') and len(key) > 1:
key = self._map_ascii_key_code_to_key(int(key[1:]))
- if len(key) > 1:
- raise ValueError("Key value '%s' is invalid.", key)
+ #if len(key) > 1:
+ # raise ValueError("Key value '%s' is invalid.", key)
element = self._element_find(locator, True, True)
+ #select it
element.send_keys(key)
# Public, links
@@ -30,5 +30,4 @@ Press Key
Press Key password_field f
Press Key password_field \\9
Press Key login_button \\13
- Sleep 15
Verify Location Is "forms/submit.html"
View
@@ -15,7 +15,7 @@
'--escape', 'space:SP',
'--report', 'none',
'--log', 'none',
- '--suite', 'Acceptance.Keywords.Textfields',
+ #'--suite', 'Acceptance.Keywords.Textfields',
'--loglevel', 'DEBUG',
'--pythonpath', '%(pythonpath)s',
]

0 comments on commit 9d40897

Please sign in to comment.