Skip to content

Commit c75e9a3

Browse files
committed
Remove methods that were deprecated a long time ago.
1 parent 1172aa5 commit c75e9a3

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,39 +1896,6 @@ def select_option_by_value(self, dropdown_selector, option,
18961896
dropdown_by=dropdown_by, option_by="value",
18971897
timeout=timeout)
18981898

1899-
@decorators.deprecated("Use self.select_option_by_text() instead!")
1900-
def pick_select_option_by_text(self, dropdown_selector, option,
1901-
dropdown_by=By.CSS_SELECTOR,
1902-
timeout=settings.SMALL_TIMEOUT):
1903-
""" Selects an HTML <select> option by option text. """
1904-
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:
1905-
timeout = self.__get_new_timeout(timeout)
1906-
self.__select_option(dropdown_selector, option,
1907-
dropdown_by=dropdown_by, option_by="text",
1908-
timeout=timeout)
1909-
1910-
@decorators.deprecated("Use self.select_option_by_index() instead!")
1911-
def pick_select_option_by_index(self, dropdown_selector, option,
1912-
dropdown_by=By.CSS_SELECTOR,
1913-
timeout=settings.SMALL_TIMEOUT):
1914-
""" Selects an HTML <select> option by option index. """
1915-
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:
1916-
timeout = self.__get_new_timeout(timeout)
1917-
self.__select_option(dropdown_selector, option,
1918-
dropdown_by=dropdown_by, option_by="index",
1919-
timeout=timeout)
1920-
1921-
@decorators.deprecated("Use self.select_option_by_value() instead!")
1922-
def pick_select_option_by_value(self, dropdown_selector, option,
1923-
dropdown_by=By.CSS_SELECTOR,
1924-
timeout=settings.SMALL_TIMEOUT):
1925-
""" Selects an HTML <select> option by option value. """
1926-
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:
1927-
timeout = self.__get_new_timeout(timeout)
1928-
self.__select_option(dropdown_selector, option,
1929-
dropdown_by=dropdown_by, option_by="value",
1930-
timeout=timeout)
1931-
19321899
############
19331900

19341901
def generate_referral(self, start_page, destination_page):
@@ -2506,12 +2473,6 @@ def delayed_assert_element(self, selector, by=By.CSS_SELECTOR,
25062473
self.__add_delayed_assert_failure()
25072474
return False
25082475

2509-
@decorators.deprecated("Use self.delayed_assert_element() instead!")
2510-
def check_assert_element(self, selector, by=By.CSS_SELECTOR,
2511-
timeout=settings.MINI_TIMEOUT):
2512-
""" DEPRECATED - Use self.delayed_assert_element() instead. """
2513-
return self.delayed_assert_element(selector, by=by, timeout=timeout)
2514-
25152476
def delayed_assert_text(self, text, selector="html", by=By.CSS_SELECTOR,
25162477
timeout=settings.MINI_TIMEOUT):
25172478
""" A non-terminating assertion for text from an element on a page.
@@ -2533,12 +2494,6 @@ def delayed_assert_text(self, text, selector="html", by=By.CSS_SELECTOR,
25332494
self.__add_delayed_assert_failure()
25342495
return False
25352496

2536-
@decorators.deprecated("Use self.delayed_assert_text() instead!")
2537-
def check_assert_text(self, text, selector="html", by=By.CSS_SELECTOR,
2538-
timeout=settings.MINI_TIMEOUT):
2539-
""" DEPRECATED - Use self.delayed_assert_text() instead. """
2540-
return self.delayed_assert_text(text, selector, by=by, timeout=timeout)
2541-
25422497
def process_delayed_asserts(self, print_only=False):
25432498
""" To be used with any test that uses delayed_asserts, which are
25442499
non-terminating verifications that only raise exceptions
@@ -2563,11 +2518,6 @@ def process_delayed_asserts(self, print_only=False):
25632518
else:
25642519
raise Exception(exception_output)
25652520

2566-
@decorators.deprecated("Use self.process_delayed_asserts() instead!")
2567-
def process_checks(self, print_only=False):
2568-
""" DEPRECATED - Use self.process_delayed_asserts() instead. """
2569-
self.process_delayed_asserts(print_only=print_only)
2570-
25712521
############
25722522

25732523
def __js_click(self, selector, by=By.CSS_SELECTOR):

0 commit comments

Comments
 (0)