How to get HTTP Response Code using Selenium WebDriver with Java?

0
0

I have written tests with Selenium2/WebDriver and want to test if HTTP Request returns an HTTP 403 Forbidden.

Is it possible to get the HTTP response status code with Selenium WebDriver?

  • You must to post comments
0
0

In a word, no. It’s not possible using the Selenium WebDriver API. This has been discussed ad nauseum in the issue tracker for the project, and the feature will not be added to the API.

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website