I'm trying to use Selenium in an Ubuntu 18.04(amd64) LXC container.
Selenium version 3.14.1,
firefox version 62.0.3,
Python 2.7
I installed geckodriver-v0.22.0-linux64.tar.gz from https://github.com/mozilla/geckodriver/releases into /usr/local/bin (which is in my path)
When I try to import driver I get the following error:
>>> from selenium import webdriver
>>> driver = webdriver.Firefox()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 253, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 324, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/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
I saw this similar post, and the issue ended up being a version compatibility issue between Selenium, Firefox, and GeckoDriver, but I don't think that is the case for me.
I've googled and googled with no luck. Took a look at a couple of github posts as well, still no luck. I'm hoping someone here can give me some ideas.
Maybe there is an issue with doing this in a container. However, I did try this on a normal Ubuntu system (not in a container) and got the exact same issue.