How to check URL for 404 using Selenium WebDriver?

Posted by stefpet on Stack Overflow See other posts from Stack Overflow or by stefpet
Published on 2009-09-21T09:04:23Z Indexed on 2010/06/16 10:12 UTC
Read the original article Hit count: 404

Filed under:
|

What is the most convenient way using Selenium WebDriver to check if an URL GET returns successfully (HTTP 200)?

In this particular case I'm most interested in verifying that no images of the current page are broken.

© Stack Overflow or respective owner

Related posts about selenium

Related posts about webdriver