Environment:
- embedded linux system on target board
- with chromium(not google chrome) installed
- I can access with /usr/bin/chromium www.google.com
- with python module selenium.webdriver installed
Issue Description:
chromium version is "Chromium 71.0.3545.0 stable" and there is no google-chrome on my board. lrwxrwxrwx 1 root root 34 Nov 29 00:14 /usr/bin/chromium -> /usr/lib/chromium/chromium-wrapper
I downloaded "ChromeDriver 2.45" ->"chromedriver_linux64.zip" which said "Supports Chrome v70-72", unzip and put "chromedriver" to /usr/bin
Then I did as following steps and got such error
Python 2.7.15 (default, Nov 26 2018, 01:36:34) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from selenium.webdriver.chrome.options import Options >>> from selenium import webdriver >>> opts=Options() >>> opts.binary_location="/usr/bin/chromedriver" >>> driver=webdriver.Chrome(chrome_options=opts) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-p packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__ self.service.start() File "/usr/lib/python2.7/site- packages/selenium/webdriver/common/service.py", line 76, in start stdin=PIPE) File "/usr/lib/python2.7/subprocess.py", line 394, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 8] Exec format error