phantomJSPath = 'C:\\my working dir\\Lib\\phantomjs.exe'
desiredCap = {'platform': 'ANY', 'browserName': 'phantomjs', 'version': '',
    'javascriptEnabled': True}
Python - Selenium PhantomJS - JSON Error