title: Python Selenium Webdriver: Finding 404s
body: <p>How can I determine when a URL is invalid using Python Webdriver. For instance, say I do <code>driver.get('http://www.google.com')</code>. If I then do <code>driver.get('anInvalidURL')</code>, no exception is thrown and <code>driver.get_source</code> is still Google's homepage. Is there any systematic way I can check that 'anInvalidURL' produces a 404? I am using Selenium 2.33.0 with a Webdriver powered by PhantomJS 1.9.</p>