class_docstr: Selenium WebDriver wrapper that adds folium test specific features.
class_docstr_tok: ["Selenium","WebDriver","wrapper","that","adds","folium","test","specific","features","."]
docstr: Make sure we have a fresh window (without restarting the browser).
docstr_tok: ["Make","sure","we","have","a","fresh","window","(","without","restarting","the","browser",")","."]
code: def clean_window(self):
      """Make sure we have a fresh window (without restarting the browser)."""
      # open new tab
      self.execute_script("window.open();")
      # close old tab
      self.close()
      # switch to new tab
      self.switch_to.window(self.window_handles[0])
  
file_path: folium/tests/selenium/conftest.py
imports: import pytest
  from selenium.webdriver import Chrome, ChromeOptions
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.expected_conditions import visibility_of_element_located
  from selenium.webdriver.support.ui import WebDriverWait
label_desc: Use image node_id 3 for calling the DriverFolium obj's underlying member method code with example usage: obj.clean_window() without return types