MCPcopy
hub / github.com/FujiwaraChoki/MoneyPrinterV2 / close_running_selenium_instances

Function close_running_selenium_instances

src/utils.py:13–32  ·  view source on GitHub ↗

Closes any running Selenium instances. Returns: None

()

Source from the content-addressed store, hash-verified

11
12
13def close_running_selenium_instances() -> None:
14 """
15 Closes any running Selenium instances.
16
17 Returns:
18 None
19 """
20 try:
21 info(" => Closing running Selenium instances...")
22
23 # Kill all running Firefox instances
24 if platform.system() == "Windows":
25 os.system("taskkill /f /im firefox.exe")
26 else:
27 os.system("pkill firefox")
28
29 success(" => Closed running Selenium instances.")
30
31 except Exception as e:
32 error(f"Error occurred while closing running Selenium instances: {str(e)}")
33
34
35def build_url(youtube_video_id: str) -> str:

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
successFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected