title: Python and selenium: Check which of two images loaded on a given page
body: <p>At the final page of my test, there's a container which contains either a green circle for "success" or a red X for "error." </p>
  
  <pre><code>&lt;img src="https://cs.cc.unc.edu/cs/campus/cache/newg/PS_CS_STATUS_ERROR_ICN_1.gif" width="16" height="16" alt="Error" class="SSSIMAGECENTER"&gt;
  </code></pre>
  
  <p>I want to check which of the two elements appears and then notify myself via email. It would be great if there were a way to retreive the string src. It would also be great to maybe get the image itself, open it with urllib2 and then check if the red color of the x is present in the image? </p>