PyCharm unable to connect to GhostDriver
Something in your terminal setup probably influences the networking.
Try to start PyCharm from your terminal:
open -a /Applications/PyCharm.app/
Then run the test again, and it should pass.
Source: sum-up of @CrazyCoder's comments
Try installing phantomjs with npm: https://www.npmjs.com/package/phantomjs.I use Mac OS X and I had a similar issue using by selenium and django.