summaryrefslogtreecommitdiff
path: root/tests/admin_widgets/tests.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-07-31 14:34:38 -0400
committerTim Graham <timograham@gmail.com>2015-07-31 15:03:18 -0400
commitf4afa699b6b47e523f9e88e9637b3322f84b1103 (patch)
tree96ced36d605007a313664de443488857231bf097 /tests/admin_widgets/tests.py
parentc3b66dafdd473227065420bfc2d8d6819fe713ad (diff)
downloaddjango-f4afa699b6b47e523f9e88e9637b3322f84b1103.tar.gz
Removed usage of selenium's deprecated switch_to_window() method.
Diffstat (limited to 'tests/admin_widgets/tests.py')
-rw-r--r--tests/admin_widgets/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index 50e0ccb715..f34ecc659e 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -1228,7 +1228,7 @@ class RelatedFieldWidgetSeleniumFirefoxTests(SeleniumDataMixin, AdminSeleniumWeb
# Click the Change User button to change it
self.selenium.find_element_by_id('change_id_user').click()
- self.selenium.switch_to_window('id_user')
+ self.selenium.switch_to.window('id_user')
self.wait_page_loaded()
username_field = self.selenium.find_element_by_id('id_username')
@@ -1238,7 +1238,7 @@ class RelatedFieldWidgetSeleniumFirefoxTests(SeleniumDataMixin, AdminSeleniumWeb
save_button_css_selector = '.submit-row > input[type=submit]'
self.selenium.find_element_by_css_selector(save_button_css_selector).click()
- self.selenium.switch_to_window(main_window)
+ self.selenium.switch_to.window(main_window)
# Wait up to 2 seconds for the new option to show up after clicking save in the popup.
self.selenium.implicitly_wait(2)
self.selenium.find_element_by_css_selector('#id_user option[value=changednewuser]')