From 8ed7834fb2830364b590b6fa6453efc8129ed0d5 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 13 Aug 2014 09:55:24 -0400 Subject: [PATCH] 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 . Possibly related: https://code.google.com/p/selenium/issues/detail?id=1969. --- tests/admin_widgets/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')