python - Cannot launch phantomjs with selenium webdriver -
i'm getting error in launching phantomjs selenium webdriver on mac. call launch phantomjs:
driver = webdriver.phantomjs(executable_path='/usr/local/bin/phantomjs')
i following error:
file "/usr/local/lib/python2.7/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 50, in __init__ self.service.start() file "/usr/local/lib/python2.7/site-packages/selenium/webdriver/phantomjs/service.py", line 75, in start raise webdriverexception("unable start phantomjs ghostdriver.", e)
webdriverexception: message: unable start phantomjs ghostdriver. screenshot: available via screen
does know i'm doing wrong here?
Comments
Post a Comment