如何将Chrome浏览器安装到CPANEL Linux托管中
[我将项目部署到使用Linux OS的CPANEL托管。我还在网站上下载了Chromedrive for Linux:[https://chromedriver.storage.storage.googleapis.com/index.html?path=103.0.5060.53/] [1],
绝对路径如下,
driver = webdriver.Chrome(executable_path=r'/home/gettaing/seleniumtest/chromedriver',options=chrome_options)
我也尝试了Windows的Chromedrive,我也尝试了Chromedrive但是有同样的错误。
webdriverexception在 /消息:未知错误:找不到chrome二进制< / p>
chrome
pip install pybrowsers
print(browsers.get("chrome"))
二进制
[I deploy the project to Cpanel hosting using Linux os. And I also downloaded ChromeDrive for Linux at the site: [https://chromedriver.storage.googleapis.com/index.html?path=103.0.5060.53/][1]
With absolute path as follows
driver = webdriver.Chrome(executable_path=r'/home/gettaing/seleniumtest/chromedriver',options=chrome_options)
And I also tried ChromeDrive for Windows but got the same error.
WebDriverException at / Message: unknown error: cannot find Chrome binary
Then I try to install pybrowsers to check if the web browser is installed or not
pip install pybrowsers
print(browsers.get("chrome"))
And the result is None
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论