Our developers have a lot on their plates not even counting bugs like this. Somewhere they are not setting the contentType="text/html". This means it is defaulting to text/plain and we are not able to test these pages without using DOM. We need to somehow change the content type from text/plain to text/html. This has to be done on our side because the devs said they will not be able to get to it soon. Does anybody know a work around or a way to change the content type after you have recieved the response?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Our developers have a lot on their plates not even counting bugs like this. Somewhere they are not setting the contentType="text/html". This means it is defaulting to text/plain and we are not able to test these pages without using DOM. We need to somehow change the content type from text/plain to text/html. This has to be done on our side because the devs said they will not be able to get to it soon. Does anybody know a work around or a way to change the content type after you have recieved the response?
Call:
HttpUnitOptions.setDefaultContentType( "text/html" );
before your tests
YES! Thank you.