My code:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
option = webdriver.ChromeOptions()
driver = webdriver.Chrome(executable_path='./chromedriver.exe', options=option)
driver.get('https://www.google.com/')
Output:
WebDriver.__init__() got an unexpected keyword argument 'executable_path'
I'm trying to create a script to log in to a website. When I try to run this script, it gives me this error:
WebDriver.__init__() got an unexpected keyword argument 'executable_path'