robotframework-imagehorizonlibrary icon indicating copy to clipboard operation
robotframework-imagehorizonlibrary copied to clipboard

Ability to have multiple versions of an reference image

Open Tattoo opened this issue 8 years ago • 6 comments

It would be handy if IHL could automatically check screenshot against multiple versions of same reference image. One idea could be to have the reference image name to be either a .png file or a folder -- in latter case, all images from under that folder could be tried.

For example, given:

reference_images/
    ├── button_cancel.png
    ├── button_save.png
    ├── popup_notification/
    │   ├── linux.png
    │   ├── osx.png
    │   └── windows.png
    └── window_title_main.png

If one would do:

Wait for    popup notification

then IHL would try each picture from that folder.

Main motivation is that right now, you would need to do this handling inside Robot Framework or force you to make a library yourself.

Tattoo avatar Mar 06 '16 11:03 Tattoo

:+1:

stade avatar Mar 07 '16 17:03 stade

Do notice, that the spec is meant to be working on all recognize-related keyword.

In other words, given the example above, also these should work:

Wait for    popup notification
Locate    popup notification
Click Image    popup notification

and so on

Tattoo avatar Apr 14 '16 18:04 Tattoo

Fixed in 604f7202bcb76f3105302afda68463d7c580b0ca

suonto avatar Apr 15 '16 08:04 suonto

Not yet documented

Tattoo avatar Apr 13 '17 08:04 Tattoo

What documentation still missing?

aaltat avatar Apr 13 '17 23:04 aaltat

From reading the documentation is seems this has been implemented and documented already? is something missing? or should this issue be closed?

damies13 avatar Feb 25 '22 13:02 damies13