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

已提问 1 年前1149 查看次数
1 回答
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
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则