0

Need to validate the http status codes of the pages of the website. Is there an option with Selenium webdriver to check?

1

Found out solution for my question. It is not with selenium webdriver. With webinject(http://webinject.org) tool.

Sample snippet from testcase.xml:

<testcases repeat="1">

 <case
   id="1"
   description1="test 404 page"
   description2="Follow redirect"
   method="post"
   url="http://localhost/test"
   verifyresponsecode="200"
   parseresponse="Location:|\n"
   errormessage="Custom File not found"
/>
</testcases>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.