← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #207946]: Exported Sikuli Test executable from local machine does not work on remote machine

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
---  guess I need to create a region first and then find the image so that the initial starting x and y coordinates are equal?
If your images are found on one screen and not on another, then it might be a rendering problem based on different resolution/scree ratio, that changes pixel contents, so the images differ on the pixel level.

You should never define a region based on absolute coordinates, if you
want to run a script on different machines. Already on the same machine
it is usually not guaranteed, that your app opens its windows at the
same place each time.

For browser apps, starting with the browser window as region (
App.window() ) is always a good choice.

The general solution is to find some key visuals on the screen, that are
fixed and specific for the app and then calculate a region relative to
these matches.

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