<div>Hi All,</div>
<div> </div>
<div>During automation of a test case the web interface throws failure and sucess text in RED and GREEN colors respectively. Is there a method to read the color of the Success(green) and Failure(red) from the screenshots of the webinterfaces collect for Failure and Success</div>
<div> </div>
<div>say :</div>
<div> </div>
<div>import Image<br>import ImageChops<br>im2 = Image.open("Failure.JPG")<br>im1 = Image.open("Sucess.JPG")<br>#print list(im1.getdata())</div>
<div>diff = ImageChops.difference(im2, im1)<br>#print diff.getbbox()<br>#diff.show()<br>#print im1.tostring()<br></div>
<div> </div>
<div>Thanks for all in advance</div>
<div> </div>
<div>Prakash</div>