sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30169
Re: [Question #260979]: How to get specific location/controller/element screenshot using sikuli with robot and java and webdriver
Question #260979 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/260979
RaiMan proposed the following answer:
If you do not want to use sikulixapi.jar and the Sikuli features, to do
what you want (many people combine WebDriver with SikuliX), then you
might look into the sources of SikuliX version 1.1.0, to find out, how
we solved this problem.
generally:
If you have a point relative to some area on a screen, then you have to translate the point with respect to the area's top-left to the screen coordinates according to what the Java GraphicsEnvironement tells you about the bounds of the active screens.
With one screen only attached, the top-left point of this screen is (0,0).
So you need the top-left point of your browser window (does WebDriver know it?)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.