We're not protecting a user's logged in session or private information,
we're using phantomjs to render publicly available content so we don't
really care whether a website's certificate checks out, or whether the
SSL version is older than the cambrian explosion.
"""
from selenium import webdriver
try:
- driver = webdriver.PhantomJS('phantomjs')
+ caps = {'acceptSslCerts': True}
+ driver = webdriver.PhantomJS(
+ 'phantomjs', desired_capabilities=caps,
+ service_args=['--ignore-ssl-errors=true', '--ssl-protocol=any'])
driver.set_window_size(384, 5)
# note that the .html suffix is required to make phantomjs