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
browser.status_code not available #2
Comments
normally, when you interact with the browser as a user (which is the case On 3 May 2014 21:08, alvinchow86 notifications@github.com wrote:
Anatoly Bubenkov |
Is it really true that browser tests don't need the status code? An example might be a test where a user fills out a form and that a redirect back to the same form should be made. I have to check that it really was an 302, and not an normal 200 from the previous post. Sure, I could make that test with a unit view test, but the project I'm in right now we decided to only make browser tests. |
just, imagine you're the browser user |
in my case the redirect goes back to same page :) post(url), redirect(url) |
then you can put some timestamp in the html and compare it On 23 October 2014 16:54, peterlauri notifications@github.com wrote:
Anatoly Bubenkov |
but why remove splinter functionality at all? if the status_code is not implemented correctly in splinter, as you stated, it should be fixed there I think... |
it's not implemented incorrectly - it's just by design NOT possible to get On 23 October 2014 18:29, peterlauri notifications@github.com wrote:
Anatoly Bubenkov |
Would it be possible to do this extra request lazily, when/if
That would be nice. My use case is to check for |
I'll take a look, thanks
|
Thanks! |
1.2.8 is out! |
oops, found out that status_code wasn't cleared on visit, now it's ok |
Sorry for the late reply, works as advertised! :) |
I tried to access "status_code" from the browser fixture but it appears to be missing?
returns
http://splinter.cobrateam.info/docs/http-status-code-and-exception.html
The text was updated successfully, but these errors were encountered: