MCPcopy Index your code
hub / github.com/seleniumbase/SeleniumBase / tearDown

Method tearDown

examples/test_geolocation.py:6–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class TestGeolocation(BaseCase):
6 def tearDown(self):
7 self.save_teardown_screenshot() # If test fails, or if "--screenshot"
8 if self.is_chromium() and not self._multithreaded:
9 # Reset Permissions and GeolocationOverride
10 try:
11 self.goto("about:blank")
12 self.execute_cdp_cmd("Emulation.setGeolocationOverride", {})
13 self.execute_cdp_cmd("Browser.resetPermissions", {})
14 except Exception:
15 pass
16 super().tearDown()
17
18 def test_geolocation(self):
19 self.goto("about:blank")

Callers

nothing calls this directly

Calls 4

is_chromiumMethod · 0.80
execute_cdp_cmdMethod · 0.80
gotoMethod · 0.45

Tested by

no test coverage detected