Below is a python snippet, which should attempt to initialize a
webdriver instance.
from selenium import webdriver
browser = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")
print("chrome driver init done")
browser.close()
And there's an error:
Traceback (most recent call last):
File "selenium_t1.py", line 2, in <module>
browser = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")
File
"/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py",
line 67, in __init__
desired_capabilities=desired_capabilities)
File
"/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py",
line 90, in __init__
self.start_session(desired_capabilities, browser_profile)
File
"/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py",
line 177, in start_session
response = self.execute(Command.NEW_SESSION, capabilities)
File
"/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py",
line 236, in execute
self.error_handler.check_response(response)
File
"/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py",
line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome
failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location
/usr/lib/chromium-browser/chromium-browser is no longer running, so
ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.40,platform=Linux 3.4.113-sun8i armv7l)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1796356
Title:
armhf chromedriver version doesn't match browser
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1796356/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs