質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Firefox

Mozilla Foundationによって作られた無料、オープンソース、クロスプラットフォームなウェブブラウザ

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

selenium

Selenium(セレニウム)は、ブラウザをプログラムで作動させるフレームワークです。この原理を使うことにより、ブラウザのユーザーテストなどを自動化にすることができます。

Q&A

解決済

2回答

2322閲覧

python3 selenium Firefox エラー

sud55s

総合スコア18

Firefox

Mozilla Foundationによって作られた無料、オープンソース、クロスプラットフォームなウェブブラウザ

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

selenium

Selenium(セレニウム)は、ブラウザをプログラムで作動させるフレームワークです。この原理を使うことにより、ブラウザのユーザーテストなどを自動化にすることができます。

0グッド

0クリップ

投稿2018/12/17 02:15

IDLEのF5で実行するとエラーはでないのに、pyファイルをダブルクリックやコマンドから実行するとエラーになります。
解決方法を教えてください。
よろしくお願いいたします。

python 3.6.4
selenium 3.10.0
geckodriver 0.23.0 win64
windows7

python

1# -*- coding: utf-8 -*- 2 3from selenium import webdriver 4from selenium.webdriver.firefox.options import Options 5import time 6 7 8options = Options() 9driver = webdriver.Firefox(firefox_options=options, executable_path='geckodriver.exe') 10 11driver.get('https://www.google.co.jp/') 12time.sleep(3) 13 14 15driver.quit()

error

1Traceback (most recent call last): 2 File "test.py", line 9, in <module> 3 driver = webdriver.Firefox(firefox_options=options, executable_path='geckodriver.exe') 4 File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lkages\selenium\webdriver\firefox\webdriver.py", line 162, in __init__ 5 keep_alive=True) 6 File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lkages\selenium\webdriver\remote\webdriver.py", line 154, in __init__ 7 self.start_session(desired_capabilities, browser_profile) 8 File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lkages\selenium\webdriver\remote\webdriver.py", line 243, in start_ses 9 response = self.execute(Command.NEW_SESSION, parameters) 10 File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lkages\selenium\webdriver\remote\webdriver.py", line 312, in execute 11 self.error_handler.check_response(response) 12 File "C:\Users\user\AppData\Local\Programs\Python\Python36-32\lkages\selenium\webdriver\remote\errorhandler.py", line 242, in check_ 13 raise exception_class(message, screen, stacktrace) 14selenium.common.exceptions.SessionNotCreatedException: Message: Faile 15browser C:\Program Files\Mozilla Firefox\firefox.exe: other os error

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

自己解決

windows8 のPCだと実行できました。

投稿2018/12/19 02:28

sud55s

総合スコア18

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

投稿2018/12/17 04:03

yamato_user

総合スコア2321

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問