Need different image sets for different browsers and zoomed pages

Asked by jeromy

Hi all,

   I was exited when saw sikuli, it's very cool, and I've found peoples are using it for automation test, and I can't wait to give it a try. However, I've encountered some problems during the process:

   I'm using it to test the web app, I use both ie and firefox.

  1. Seems I should give screenshots of the elements(menu, button ,text area etc) in both firefox and ie, even though the elements on the page looks the nearly the same.

  2. When zoom in or zoom out the page, the script won't work.

  so, I think the images resource should be replaced if I want to use it in another monitor which has a different screen size. However, I think it should be more robust when the image size changed, I'm not expert on OpenCV, but theoretically, I think it can be solved.

Question information

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

Currently the image probe and the target must be the same size in pixels (so zoom will not work).

Since the images are compared based on the contained pixels (with some resizing/recalculation to boost performance), the probe and the target must be similar in the sense, that only some of the pixels might have a different color or brightness.

In some cases (e.g. slight differences of buttons) using a reduced similarity might help, but increases risk of failures.

The request for more options on using the same image in different scenarios is already a request bug.

For now, you have to live with the situation or find your own workaround.

Can you help with this problem?

Provide an answer of your own, or ask jeromy for more information if necessary.

To post a message you must log in.