Question #240785 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240785

    Status: Open => Answered

RaiMan proposed the following answer:
-- check existence of an image
... is the basic kernel feature of Sikuli: 
you have an image and ask Sikuli to find it on the screen or in a defined area 
of the screen (Sikuli: a region)

To find out about some basic possibilities I recommend to play around
with the Sikuli IDE and have a look at the many examples at
http://www.sikuli.org/ (the right place also to start with when you want
to get the latex version of Sikuli IDE).

And Google helps with any combination of the word Sikuli and other items
like Selenium, QTP, ...

--- basic usage
# filename of an image 
img = "some-image.png" # filename of an image 

# search the image on the screen and return a match 
# (the region the image currently occupies on the screen)
# together with a score value (exact match = 1.0)
print find(img) 

--- check existence of text
if the text is fixed, one can use a screenshot of the text and act like an 
image (see above)

If it is real text in a webpage, that might be variably formatted, then
this is principally possible (Sikuli has a basic OCR feature), but
usually for web pages Sikuli users combine Selenium (for the page
structure and the textual contents) with Sikuli (to check the rendering,
verify images and do some basic automation on the page GUI (especially
with flash content)).

You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to