Error running python selenium webdriver for chrome browser on aws ec2

0
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_argument("--headless")
driver = webdriver.Chrome(options=options, executable_path=r'/usr/bin/chromedriver')
driver.get("http://google.com/")
print ("Headless Chrome Initialized")
driver.quit()

Error Enter image description here

asked a year ago1123 views
1 Answer
0

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 pictureAWS
EXPERT
answered a year 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