Skip to content

Instantly share code, notes, and snippets.

@omaciel
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omaciel/9122404 to your computer and use it in GitHub Desktop.
Save omaciel/9122404 to your computer and use it in GitHub Desktop.
Using PhantomJS for quick UI testing using Selenium's WebDriver. There seems to be an exception that is not bubbling up using https... no issues using http. Here's how to resolve it.
In [1]: from selenium import webdriver
In [2]: service_args = ['--ignore-ssl-errors=true']
In [3]: driver = webdriver.PhantomJS(service_args=service_args)
In [4]: driver.get("https://aaa.bbb.ccc")
In [5]: driver.title
Out[5]: u'Login'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment