webdriver_cache_manager
simplifies managing ChromeDriver instances in Selenium using Python. Track active processes, terminate unused instances, and handle associated PIDs with ease.
Install via pip:
pip install webdriver_cache_manager
- Process Tracking: Monitor active ChromeDriver instances.
- Termination: Safely terminate unused ChromeDriver processes.
- CSV Management: Handle PIDs efficiently using CSV files.
-
Import Package:
from webdriver_cache_manager import ManageChromeDriverCache
-
Initialize Manager:
- Create a
Chrome Driver
instance. - Utilize the methods for managing ChromeDriver instances.
-
ManageChromeDriverCache(driver)
- Create a
-
Initialize Manager:
Check out the provided examples and utilities for managing ChromeDriver instances in the examples
directory.
Contributions are welcome! If you encounter issues or have suggestions, feel free to create an issue or submit a pull request.
This project is licensed under the MIT License.