driver = webdriver.PhantomJS(desired_capabilities=dcap, service_args=[
    '--ignore-ssl-errors=true', '--ssl-protocol=any', '--web-security=false'])
Transparent screenshot with PhantomJS in Selenium [Python]?