[英]selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 69
I was learning webdriver and stuff. 我正在学习网络驱动程序和其他东西。
I tried below code: 我尝试下面的代码:
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')
But getting an error as below: 但是出现如下错误:
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. selenium.common.exceptions.WebDriverException:消息:服务geckodriver意外退出。 Status code was: 69 状态码为:69
Have you setup GeckoDriver properly? 您是否正确设置了GeckoDriver? You need to provide the GeckoDriver location in System properties, as well as Firefox binary if you are using the latest versions. 您需要在系统属性中提供GeckoDriver位置,如果使用最新版本,则需要提供Firefox二进制文件。
Please check out this article for setup. 请查看本文进行设置。 The code snippets are in Java though. 代码片段是用Java编写的。
http://www.automationtestinghub.com/selenium-3-0-launch-firefox-with-geckodriver/ http://www.automationtestinghub.com/selenium-3-0-launch-firefox-with-geckodriver/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.