gpt4 book ai didi

python - selenium.common.exceptions.WebDriverException : Message: Service geckodriver unexpectedly exited. 状态代码为:69

转载 作者:行者123 更新时间:2023-12-01 17:00:50 34 4
gpt4 key购买 nike

我正在学习网络驱动程序之类的东西。

我尝试了以下代码:

import random, time, requests
from selenium import webdriver
from selenium.webdriver.common.proxy import *
from bs4 import BeautifulSoup

driver = webdriver.Firefox()
driver.get('http://google.com')

但出现如下错误:

selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 69

最佳答案

您是否正确设置了 GeckoDriver?您需要在系统属性中提供 GeckoDriver 位置,如果您使用的是最新版本,还需要提供 Firefox 二进制文件。

请查看这篇文章进行设置。不过代码片段是用 Java 编写的。

http://www.automationtestinghub.com/selenium-3-0-launch-firefox-with-geckodriver/

关于python - selenium.common.exceptions.WebDriverException : Message: Service geckodriver unexpectedly exited. 状态代码为:69,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43231545/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com