I'm trying to get a task using selenium to webscrape and I'm getting an error that says :
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 117 Current browser version is 90.0.4430.212 with binary path /usr/bin/chromium
my code is
chrome_options = webdriver.ChromeOptions()
service = webdriver.ChromeService()
chrome_options.add_argument("--no-sandbox")
chrome_options.headless = True
chrome_options.add_argument("--disable-gpu")
browser = webdriver.Chrome(service=service, options=chrome_options)
I'm folllowing the CI/CD tutorial so my code in in /var/www/sites/mysite. How do I get selenium to use the correct chromedriver?