I am not able to get Selenium set up due to an issue with my Chrome Driver. I am running the code below and am getting the following error. Unsure on why I am getting it I have followed steps of others on this page but cannot get anything to work. Any suggestions would be much appreciated!
!ls /usr/lib/chromium-browser/chromedriver
Output: /usr/lib/chromium-browser/chromedriver
options = webdriver.ChromeOptions()
options.add_argument('--no-sandbox')
options.add_argument('--headless')
options.add_argument('--disable-gpu')
options.add_argument('--disable-dve-shm-usage')
driver = webdriver.Chrome(executable_path='/usr/lib/chromiumbrowser/chromedriver', options=options)
Output: ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-45-57873817cdd0> in <cell line: 6>()
4 options.add_argument('--disable-gpu')
5 options.add_argument('--disable-dve-shm-usage')
----> 6 driver = webdriver.Chrome(executable_path='/usr/lib/chromium-browser/chromedriver', options=options)
TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path'