MCPcopy Index your code
hub / github.com/python-visualization/folium / clean_window

Method clean_window

tests/selenium/conftest.py:34–41  ·  view source on GitHub ↗

Make sure we have a fresh window (without restarting the browser).

(self)

Source from the content-addressed store, hash-verified

32 super().get("file://" + filepath)
33
34 def clean_window(self):
35 """Make sure we have a fresh window (without restarting the browser)."""
36 # open new tab
37 self.execute_script("window.open();")
38 # close old tab
39 self.close()
40 # switch to new tab
41 self.switch_to.window(self.window_handles[0])
42
43 def verify_js_logs(self):
44 """Raise an error if there are errors in the browser JS console."""

Callers 1

get_fileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected