robotframework-imagehorizonlibrary
robotframework-imagehorizonlibrary copied to clipboard
multiple same reference image on page / check reference image in part of page
I must check icons on a web page, the same icon is used at several locations of the page, I would like to be able to restrict the checking into a (x,y,width,height) or (min_x, min_y, max_x, max_y) rectangle so that the test don't finish ok if one of the icon is not right how can I do that?
@jlmxyz ,
Is it possible in your scenario to create a reference image with both the icon and some other graphical element on the page, that would then separate it from the other icons? For example, if the icon you want to locate is in the right side of the web page, you could make a reference image out of the icon and the page's scrollbar
on most case yes... but there are cases where the data next to the icons can change according to the values, this will make huge amount of screenshots... it will be also more efficent and CPU friendly if only a part of the screen is matched...
Le mar. 24 août 2021 à 19:55, Tatu Kairi @.***> a écrit :
@jlmxyz https://github.com/jlmxyz ,
Is it possible in your scenario to create a reference image with both the icon and some other graphical element on the page, that would then separate it from the other icons? For example, if the icon you want to locate is in the right side of the web page, you could make a reference image out of the icon and the page's scrollbar
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eficode/robotframework-imagehorizonlibrary/issues/53#issuecomment-904853943, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJUDLRELOV4KFIOD7XWRDPLT6PMIFANCNFSM5CXIIEMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .