我正在尝试在 AWS Lambda 中安装/运行 Head-Less Chrome,但是当我通过 Lambda 对其进行测试时出现以下错误。
"errorMessage": "消息:服务 /tmp/bin/chromedriver 意外退出。状态代码为:127\n", "errorType": "WebDriverException"
我在 Linux 上使用 ChromeDriver 83.0.4103.39。
在 Python 中执行的步骤:
蟒蛇代码:
在以下行上抛出错误 -
driver = webdriver.Chrome(chrome_options=chrome_options, executable_path = "/tmp/bin/" + chrome_linux_driver)
当我在具有相同 Windows Chrome 驱动程序的 Windows 下运行时,代码工作正常。
任何帮助都非常感谢。