Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome 无法使用selenium打开浏览器_Google Chrome_Selenium_Ubuntu_Firefox - Fatal编程技术网

Google chrome 无法使用selenium打开浏览器

Google chrome 无法使用selenium打开浏览器,google-chrome,selenium,ubuntu,firefox,Google Chrome,Selenium,Ubuntu,Firefox,我试图通过selenium打开firefox/chrome,但出现了错误 我目前使用32位ubuntu 14.04,对selenium非常陌生 我已经安装了selenium版本3.4.3 我还安装了chromedriver 2.26版,并在正确的usr/loc/bin中安装了geckodriver 我正在跑步。52.xx和Firefox 49.0版 现在,当我尝试: from selenium import webdriver driver = webdriver.Firefox() from

我试图通过selenium打开firefox/chrome,但出现了错误

我目前使用32位ubuntu 14.04,对selenium非常陌生

我已经安装了selenium版本3.4.3

我还安装了chromedriver 2.26版,并在正确的usr/loc/bin中安装了geckodriver

我正在跑步。52.xx和Firefox 49.0版

现在,当我尝试:

from selenium import webdriver
driver = webdriver.Firefox()
from selenium import webdriver
browser = webdriver.Chrome()
我得到一个错误:

OSError: [Errno 8] Exec format error
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome version must be >= 53.0.2785.0
(Driver info: chromedriver=2.26.436383 (d0824d41df30c55dc5e0eff765aadf348a631aae),platform=Linux 3.13.0-86-generic x86)
当我尝试时:

from selenium import webdriver
driver = webdriver.Firefox()
from selenium import webdriver
browser = webdriver.Chrome()
我得到一个错误:

OSError: [Errno 8] Exec format error
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome version must be >= 53.0.2785.0
(Driver info: chromedriver=2.26.436383 (d0824d41df30c55dc5e0eff765aadf348a631aae),platform=Linux 3.13.0-86-generic x86)
抱歉,32位Ubuntu没有新的Chrome浏览器,我也不知道如何用Firefox解决这个错误。任何帮助都将不胜感激


谢谢

读了这篇文章,我按照这篇指南设置了一切。他拥有64位ubuntu,因此可以运行最新的chrome浏览器。但由于我的是32位,我无法更新我的chrome。因为您使用的是
chromedriver 2.26版
错误说明一切
WebDriverException:…:Chrome版本必须>=53.0.2785.0
谢谢,我知道。32位ubuntu没有新版本。所以你应该降级浏览器,因为每个驱动程序版本只支持特定的浏览器版本。如果您安装了上一个驱动程序,而新的chrome还不受支持,那么您应该将chrome降级,直到新的驱动程序出现。