sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44036
Re: [Question #658802]: Does sikuli still need to focus on the window in order to interact with it?
Question #658802 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658802
Status: Open => Answered
RaiMan proposed the following answer:
@Brian
For what you want to do, the Java class Robot is not the right target for replacement/enrichment.
You have to design a superclass (e.g. named GUI) of class Region (and
probably Location), that is the base class, to define a pixel area on
the screen, that should be acted on.
Your superclass has to handle the highlevel window and GUI-element
accesses (like Selenium for a web-GUI) and translate it to pixel areas
and locations:
myElement = GUI.getGuiElement("some descriptive information about the needed GUI element")
myElement.click()
The first line, is what you have to develop. The second line internally
uses the existing feature of GUI subclass Region.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.