Last active
August 29, 2015 13:56
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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