Skip to content

Python code snippet – How to install drivers for selenium ?

#in the terminal add the following
pip install webdriver-manager

#in the script add the following to the imports
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

#then add the following line to create the page
web = webdriver.chrome(chromeDriverManager().install())
See also  Python code snippet - How to replace number in list ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.