Skip to content

Commit 962e2dc

Browse files
committed
Refactor base_case
1 parent 19b7324 commit 962e2dc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,10 +2214,6 @@ def ad_block(self):
22142214
except Exception:
22152215
pass # Don't fail test if ad_blocking fails
22162216

2217-
def block_ads(self):
2218-
""" Same as ad_block() """
2219-
self.ad_block()
2220-
22212217
def get_domain_url(self, url):
22222218
return page_utils.get_domain_url(url)
22232219

@@ -2965,10 +2961,15 @@ def assert_element_not_present(self, selector, by=By.CSS_SELECTOR,
29652961
return True
29662962

29672963
def wait(self, seconds):
2968-
""" Same as sleep() - Some JS frameworks use this method name. """
2964+
""" Same as self.sleep() - Some JS frameworks use this method name. """
29692965
self.sleep(seconds)
29702966

2967+
def block_ads(self):
2968+
""" Same as self.ad_block() """
2969+
self.ad_block()
2970+
29712971
def _print(self, msg):
2972+
""" Same as Python's print() """
29722973
print(msg)
29732974

29742975
def start_tour(self, name=None, interval=0):

0 commit comments

Comments
 (0)