code: def open_new_window(self, switch_to=True):
          
          self.driver.execute_script("window.open('');")
          time.sleep(0.01)
          if switch_to:
              self.switch_to_window(len(self.driver.window_handles) - 1)
docs: Opens a new browser tab/window and switches to it by default.