webbot
webbot copied to clipboard
Driver selection issue, for Mac OSX Mojave
in webbot.py
I feel that this edit is more significant to resolving which driver to use..
if(not showWindow):
options.set_headless(headless=True) ;
driverfilename = "chrome_linux" if sys.platform=='linux' or sys.platform=="linux2" else "chrome_windows.exe" if sys.platform=='win32' else "chrome_mac" ;
driverpath = os.path.join(os.path.split(__file__)[0] , 'drivers{0}{1}'.format(os.path.sep , driverfilename))
I think my problem is similar:
Using this on a mac, how do I specify which chrome driver to use?
It is trying to use chrome_linux and I see that there is a chrome_mac driver.
Also, it is giving an Errno 8 exec format error when using the chrome_linux driver even though I have given it executable permission using chmod +x chrome_linux.
Hey Stephen!
Used the code I posted! It will fix it. And chmod +x on all the drivers (:
Sent from my iPhone
On Nov 10, 2018, at 06:08, Stephen Graham [email protected] wrote:
I think my problem is similar:
Using this on a mac, how do I specify which chrome driver to use?
It is trying to use chrome_linux and I see that there is a chrome_mac driver.
Also, it is giving an Errno 8 exec format error when using the chrome_linux driver even though I have given it executable permission using chmod +x chrome_linux.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.