webbot icon indicating copy to clipboard operation
webbot copied to clipboard

Driver selection issue, for Mac OSX Mojave

Open jasonkolodziej opened this issue 6 years ago • 2 comments

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))

jasonkolodziej avatar Nov 07 '18 14:11 jasonkolodziej

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.

charlbury avatar Nov 10 '18 12:11 charlbury

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.

jasonkolodziej avatar Nov 10 '18 13:11 jasonkolodziej