Error running python selenium webdriver for chrome browser on aws ec2

from selenium import webdriver
from import Options

options = Options()
driver = webdriver.Chrome(options=options, executable_path=r'/usr/bin/chromedriver')
print ("Headless Chrome Initialized")

Error Enter image description here

asked 16 days ago15 views
1 Answer

Not very sure which ec2 machine (along with OS) + Chrome versions being used but from the exception "selenium. common. exceptions. SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 80" it looks you may have to revisit/check your installation and its version of Chrome and its driver.

profile picture
answered 16 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions