2017-04-05 6 views
0

私はwebdriverやものを学習していました。selenium.common.exceptions.WebDriverException:メッセージ:サービスgeckodriverが突然終了しました。ステータスコード:69

私はコードの下に試してみました:

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:メッセージ:予期せず終了したサービス geckodriver。ステータスコード:69

答えて

0

GeckoDriverを正しくセットアップしましたか?最新のバージョンを使用している場合は、システムプロパティにGeckoDriverの場所とFirefoxバイナリを指定する必要があります。

セットアップについては、この記事をご覧ください。しかし、コードスニペットはJavaにあります。

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

関連する問題