sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31071
Re: [Question #263456]: sikuli find same image in screen
Question #263456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263456
Status: Open => Answered
RaiMan proposed the following answer:
These are the steps, to get the region of the frontmost Chrome window.
1. open Chrome and make it the frontmost application
2. open the needed webpage and wait until it is ready
For doing step 1 and 2 in a Sikuli script, there are various approaches.
The easiest of course is to do it manually and start the script, when the page is ready.
reg = App.focusedWindow() # gives you the window region of the frontmost
application
matches = list(findAll(some_image))
now you have 0 or more matches in matches, that you can evaluate.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.