当我发现通过安装firefoxdriver,铬材料也将被安装时,我感到惊讶:
$ sudo apt install firefoxdriver
[sudo] password for asuka:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
chromium-browser chromium-chromedriver python3-s
我正在使用带有selenium和python的Linux 7服务器上的无头铬。在试图激活驱动程序时,我得到了以下错误:
Traceback (most recent call last):
File "send_notif_marktplaats.py", line 128, in <module>
main()
File "send_notif_marktplaats.py", line 117, in main
driver = activate_driver()
File "send_notif_marktp
我在AWS上的EC2实例(ubuntu)上运行了一个python脚本。它使用硒。它完美地工作了几个星期,然后突然,今天,它停止了以下错误的工作:
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 79
下面是我在ubuntu上运行的python脚本:
#install dependencies
from selenium import webdriver
fro
我试图在Raspberry Pi 3上以无头模式运行铬,我从获得了铬色驱动程序。我总是犯同样的错误。当我试着从终端运行铬色驱动器时,它说我错过了libgfx.so,在仔细寻找之后,我找不到树莓皮的任何地方。我试着从终端安装。下面是我的代码,以及我尝试过的所有内容和相关的错误。在这一点上,任何和所有的帮助都是值得感谢的。
我的代码:
from selenium.webdriver import Chrome
from contextlib import closing
from selenium.webdriver.chrome.options import Options
chrome_op