diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-13 09:55:24 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-14 20:31:10 -0400 |
| commit | 8ed7834fb2830364b590b6fa6453efc8129ed0d5 (patch) | |
| tree | 41d947deccb57b13a2d952db334a18ac02f26eb2 /tests/admin_widgets | |
| parent | 6426928f5665953b93f6887e9bf9eadfb03489b6 (diff) | |
Fixed occasional selenium test failure on Jenkins with Chrome 36+.
Previously find_element_by_id('id_password') on the next line failed with
NoSuchElementException and selenium.page_source was
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>.
Possibly related: https://code.google.com/p/selenium/issues/detail?id=1969.
Diffstat (limited to 'tests/admin_widgets')
| -rw-r--r-- | tests/admin_widgets/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py index fbb7e8b22f..fdca577809 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -1126,7 +1126,7 @@ class RelatedFieldWidgetSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase): # Click the Add User button to add new self.selenium.find_element_by_id('add_id_user').click() self.selenium.switch_to.window('id_user') - self.wait_page_loaded() + self.wait_for('#id_password') password_field = self.selenium.find_element_by_id('id_password') password_field.send_keys('password') |
