# To get rid of the deprecation warning. from selenium import webdriver from selenium.webdriver.chrome.service import Service s = Service("<<PATH TO CHROME EXECUTABLE") driver = webdriver.Chrome(service=s)