nateshmbhat / webbot

Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
https://pypi.org/project/webbot/
Mozilla Public License 2.0
239 stars 87 forks source link

Driver selection issue, for Mac OSX Mojave #5

Open jasonkolodziej opened 5 years ago

jasonkolodziej commented 5 years ago

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))
charlbury commented 5 years ago

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.

jasonkolodziej commented 5 years ago

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 notifications@github.com 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.