summaryrefslogtreecommitdiffstats
path: root/lib/toaster/tests/browser/selenium_helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/tests/browser/selenium_helpers.py')
-rw-r--r--lib/toaster/tests/browser/selenium_helpers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/toaster/tests/browser/selenium_helpers.py b/lib/toaster/tests/browser/selenium_helpers.py
index d3ab3ca72..56dbe2b34 100644
--- a/lib/toaster/tests/browser/selenium_helpers.py
+++ b/lib/toaster/tests/browser/selenium_helpers.py
@@ -185,7 +185,11 @@ class SeleniumTestCase(StaticLiveServerTestCase):
def enter_text(self, selector, value):
""" Insert text into element matching selector """
- field = self.wait_until_present(selector)
+ # note that keyup events don't occur until the element is clicked
+ # (in the case of <input type="text"...>, for example), so simulate
+ # user clicking the element before inserting text into it
+ field = self.click(selector)
+
field.send_keys(value)
return field