In the README, there's instructions to use the webdriver-manager. Something like this:
# selenium 3
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
As per docs, these only work with Selenium 3. For anyone using Selenium 4,
# selenium 4
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
This solved my issue for Selenium 4.
In the README, there's instructions to use the webdriver-manager. Something like this:
As per docs, these only work with Selenium 3. For anyone using Selenium 4,
This solved my issue for Selenium 4.