Different screen resolutions: Button is not recognized

Asked by Jeff Sant

I created a script to click on a browser button, made on 1366x768 resolution but it doesn't works on 1440x900 resolution though i got the new button image from that resolution but nothing is working.

When i make a new script on the pc with smaller resolution 1440x900 and run it there it works fine, but when i bring it to bigger resolution pc 1366x768 and add more code then it does not work again on the smaller resolution 1440x900.

is there any way i can fix it, because my friend is using 1440x900 and i am using 1366x768 and i don't want to send him code instead a sikuli executable file.

Any help would be appreciated.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

Normally this has nothing to do with resolution, since inside a browser window the images are rendered based on the pixel-by-pixel image information and should be the same.

Problems might come up, if it is a resolution-aware Flash app (rendering the same "image" different on different resolutions). In this case, there is no other chance to solve this, then having different images for both resolutions.

Revision history for this message
Jeff Sant (sant-jeff) said :
#2

No it is not flash, it i just the facebook like button and its not working. Any solution?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

send some code snippet and screenshots zipped together to my mail at https://launchpad.net/~raimund-hocke

Revision history for this message
Jeff Sant (sant-jeff) said :
#4

sent you an email of sample code.

Thanks

Revision history for this message
Jeff Sant (sant-jeff) said :
#5

Thanks RaiMan, that solved my question.

Revision history for this message
danny d (dannydufau) said :
#6

I have a similar problem, not a flash app. What was the solution?

Thanks

Revision history for this message
RaiMan (raimund-hocke) said :
#7

@ danny
problem: resolution aware rendering in browsers/browser windows on different machines/browsers
solution: take separate screenshots for every browser/machine

If you think, that is not the problem, post a new question explaining your situation and environment.