diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-28 06:10:13 -0800 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-11-28 15:10:13 +0100 |
| commit | c8bd37a8606a89b6e09854ab5f3bbaa98e849408 (patch) | |
| tree | 4ec49252ec74591c3816814d49fa8903c8f1e4ac /django/contrib/admin/tests.py | |
| parent | 875e3ff4fd883e11008ca9dfcf02b8314c57c0a6 (diff) | |
Fixed #31042 -- Removed AdminSeleniumTestCase.get_css_value() in favor of Selenium .is_displayed().
All instances of AdminSeleniumTestCase.get_css_value() were used to
inspect the display property.
Diffstat (limited to 'django/contrib/admin/tests.py')
| -rw-r--r-- | django/contrib/admin/tests.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/django/contrib/admin/tests.py b/django/contrib/admin/tests.py index 5ea233ad5e..748e67fd3f 100644 --- a/django/contrib/admin/tests.py +++ b/django/contrib/admin/tests.py @@ -133,14 +133,6 @@ class AdminSeleniumTestCase(SeleniumTestCase, StaticLiveServerTestCase): with self.wait_page_loaded(): self.selenium.find_element_by_xpath('//input[@value="%s"]' % login_text).click() - def get_css_value(self, selector, attribute): - """ - Return the value for the CSS attribute of a DOM element specified by - the given selector. Uses the jQuery that ships with Django. - """ - return self.selenium.execute_script( - 'return django.jQuery("%s").css("%s")' % (selector, attribute)) - def select_option(self, selector, value): """ Select the <OPTION> with the value `value` inside the <SELECT> widget |
