sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34251
Re: [Question #270546]: Comparing texts between 2 versions of my application
Question #270546 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270546
Eugene Maslov proposed the following answer:
The files can be compared with Python features, there is no need to call
Sikuli functions for that.
content1 = open('d:/file1.txt', 'r').read()
content2 = open('d:/file2.txt', 'r').read()
if content1==content2:
print "the same"
else:
print "different"
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.