diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-28 00:24:19 -0800 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-11-28 09:24:19 +0100 |
commit | f0ed38edf33947fad539d43b7b3fbabf82816518 (patch) | |
tree | 2adf99a6a70cb2f55e479b28bb7fd81aa79a31ca /tests/admin_widgets | |
parent | ff1b19da6761217ed1b14cc7e94c6438903565d8 (diff) | |
download | django-f0ed38edf33947fad539d43b7b3fbabf82816518.tar.gz |
Refs #29892 -- Replaced Selenium .submit() shim with .click() on the submit button.
There is no WebDriver submit primitive. The Selenium project implements
it as a convenience only. The geckodriver developers recommend against
using it. Replace it with a real primitive, click on the submit button.
Fixes failing Seleninum test test_date_time_picker_shortcuts when using
the Firefox Selenium driver.
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 32f065b325..f854f4dc20 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -941,7 +941,7 @@ class DateTimePickerShortcutsSeleniumTests(AdminWidgetSeleniumTestCase): # Submit the form. with self.wait_page_loaded(): - self.selenium.find_element_by_tag_name('form').submit() + self.selenium.find_element_by_name('_save').click() # Make sure that "now" in javascript is within 10 seconds # from "now" on the server side. |