# Tested with:
# https://github.com/ultrafunkamsterdam/undetected-chromedriver
# Python 3.9.13
# Windows 10
$pip install a-selenium-kill
import undetected_chromedriver as uc
from a_selenium_kill import add_kill_selenium
@add_kill_selenium
def get_driver():
return uc.Chrome()
#return driver
if __name__ == "__main__":
driver = get_driver()
driver2 = get_driver()
driver3 = get_driver()
#Kill Chrome:
# driver.die_die_die_selenium()
-
Notifications
You must be signed in to change notification settings - Fork 0
A decorator to kill Chrome if Selenium/ChromeDriver got stuck
License
hansalemaos/a_selenium_kill
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A decorator to kill Chrome if Selenium/ChromeDriver got stuck