user_agent = ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) ' +
    'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36')
dcap = dict(DesiredCapabilities.PHANTOMJS)
Python Selenium with Phantomjs - Click Failed: ReferenceError: Cant't find variable