-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty markup returned when testing HTTPS pages. #38
Comments
Hi @Chapabu thank you for filing this and researching the issue! This suggestion makes sense. Question tho -- is there any case where we'd need to set ssl-protocol if the url didn't contian |
Good call. My only concern with that would be that PhantomJS defaults to SSLv3 (which POODLE kinda borked), so we'd need to allow people to pass in the protocol that should be used. PhantomJS can take one of four arguments for |
Actually, I've just checked against Twitter and Facebook, and it appears that passing |
One last thing (sorry, I keep thinking just after posting my comments - this'll be the last one, I promise). If a site doesn't use HTTPS, then it doesn't even matter what option we pass to Casper/Phantom. We should just be able to always pass |
That sounds great. Go ahead and add that parameter if you get a chance. I'm happy to pull that in. Thanks. |
This was resolved. Issue only effects older phantom installs. |
If your configuration is set up to hit a page over HTTPS, then you get the following markup:
This isn't an issue with BackstopJS exactly, but how PhantomJS handles pages running under HTTPS. Following advice on StackOverflow here, it can be fixed by passing
--ssl-protocol=tlsv1
in with thetests
array prior to spawning the CasperJS process (e.g. echo.js).Obviously this doesn't make sense to add this in globally, but perhaps we could add an option for which SSL protocol to use (if any) in the
backstop.json
config file? I guess it'd be most suitable in the scenarios section?I.e.
I'm happy to work on a pull request for this, but does the suggested approach make sense?
The text was updated successfully, but these errors were encountered: