Selenium异常:消息:无效参数:无法杀死已退出的进程

时间:2019-04-11 18:47:07

标签: python selenium firefox geckodriver

我正在尝试使用Selenium在ubuntu中运行带有geckodriver的Firefox浏览器,并收到错误:selenium.common.exceptions.WebDriverException:消息:无效参数:无法杀死退出的进程

我看了这个WebDriverException: Message: invalid argument: can't kill an exited process with GeckoDriver, Selenium and Python on RaspberryPi3

并检查了我正在使用的版本,并认为它们都应该兼容。 Firefox 66.03版 Geckodriver 0.24.0 Python 3.6.7

我还确认了壁虎驱动程序正在前进,但仍然没有任何乐趣。

非常感谢您的帮助。

  driver = webdriver.Firefox()
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
    keep_alive=True)
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: invalid argument: can't kill an exited process

0 个答案:

没有答案