Hi All,

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

say :

import Image
import ImageChops
im2 = Image.open("Failure.JPG")
im1 = Image.open("Sucess.JPG")
#print list(im1.getdata())
diff = ImageChops.difference(im2, im1)
#print diff.getbbox()
#diff.show()
#print im1.tostring()

Thanks for all in advance

Prakash
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to