sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23857
Re: [Question #243198]: How to compare text displayed on a GUI
Question #243198 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243198
obiwan-92 proposed the following answer:
Thrid method :
If you can select your text (with a doubleClick), do :
type('c', KeyModifier.CTRL) # get the selected text in your clipboard
text1 = Env.getClipboard() # get it in run time
# Do the same thing for the text 2 and :
if text1 == text2 : print "they are identical"
else: print "they are not identical"
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.