Home > other >  Python3 selenuim firefox geckodriver error: invalid argument: can 't kill an exited p
Python3 selenuim firefox geckodriver error: invalid argument: can 't kill an exited p

Time:09-20

The selenium version 3.141.0
Python version 3.7.7
Firefox versions 68.6.0 esr
Geckodriver version 0.26.0
Always run under Linux doesn't come, have a headache,
Direct operation error:
Selenium.com mon. Exceptions. WebDriverException: Message: invalid argument: can 't kill an exited the process
Check the geckodriver. Log
Written inside the
Failed to open the connection to "session" message bus: Unable to autolaunch a daemon without a dbus - $DISPLAY for X11
Running without a11y support!
Error: no DISPLAY environment variable specified

This version is not corresponding problems??
Firefox and geckodriver is the latest version of
Firefox with yum directly remove firefox install, geckodriver is go to the website to download the latest version of the
 
[root @ data - download bin] # geckodriver -h
Geckodriver 0.26.0 e9783a644016 thy + 2019-10-10 (0000)
WebDriver implementation for Firefox
[root @ data - download lib64] # firefox - version
Failed to open the connection to "session" message bus: Unable to autolaunch a daemon without a dbus - $DISPLAY for X11
Running without a11y support!
Mozilla Firefox 68.6.0 esr
[root @ data - download/] # python3
Python 3.7.7 (default, Apr 17th 2020, 13:56:16)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on Linux
Type "help", "copyright", "credits" or "license" for more information.
> The from the selenium import webdriver
> Option=webdriver. FirefoxOptions ()
> Option. Add_argument (' headless ')
> Option. Add_argument (' no - the sandbox)
> Option. Add_argument (' disable - dev - SHM - the usage of ')
> Driver=webdriver. Firefox (executable_path='/usr/local/bin/geckodriver', the options=option)
Traceback (the most recent call last) :
The File "& lt; Stdin>" , the line 1, the in & lt; module>
The File "/usr/local/python3/lib/python3.7/site - packages/selenium webdriver/firefox/webdriver py", line 174, in __init__
Keep_alive=True)
The File "/usr/local/python3/lib/python3.7/site - packages/selenium webdriver/remote webdriver. Py", line 157, in __init__
Self. Start_session (" capabilities, browser_profile)
The File "/usr/local/python3/lib/python3.7/site - packages/selenium webdriver/remote webdriver. Py", line 252, in start_session
Response=self. The execute (Command NEW_SESSION, parameters)
The File "/usr/local/python3/lib/python3.7/site - packages/selenium webdriver/remote webdriver. Py", line 321, in the execute
The self. The error_handler. Check_response (response)
The File "/usr/local/python3/lib/python3.7/site - packages/selenium webdriver/remote/errorhandler py", line 242, in check_response
Raise exception_class (message, screen, stacktrace)
Selenium.com mon. Exceptions. WebDriverException: Message: invalid argument: can 't kill an exited the process

>


 [root @ data - download/] # cat geckodriver. Log 
Failed to open the connection to "session" message bus: Unable to autolaunch a daemon without a dbus - $DISPLAY for X11
1587215249839 mozrunner: : runner INFO Running the command: "/usr/bin/firefox" "- the marionette" "headless" "no - the sandbox" disable "- dev - SHM - the usage of" "- foreground" "- no - remote" "- profile" "/TMP/rust_mozprofileiiBFaQ
"Failed to open the connection to "session" message bus: Unable to autolaunch a daemon without a dbus - $DISPLAY for X11
Running without a11y support!
Error: no DISPLAY environment variable specified
  • Related