HTTP Headers

Discussions

Ask a Question
Back to All

HTTP Headers

Hello

Is there a way to detect the header response, when the form is submitted?

For example

        SUT.FindFormFor<RegistrationViewModel>()

   .Field(x => x.Email)
            .SetValueTo("[email protected]")
   .Field(x => x.Password)
            .SetValueTo("12345")
            .Submit();

At this point, if the response is HTTP 500, the testing goes on. "When" does not fail. Is there a way to assert that the response must be HTTP 200?