lksv / node-resemble.js

LOOKING FOR MAINTAINER - Image analysis and comparison
MIT License
99 stars 37 forks source link

Question: multiple ignoreRectangles() #12

Closed wswebcreation closed 9 years ago

wswebcreation commented 9 years ago

Hi guys,

Tnx for the awesome module to compare images. I'm using this in combination with Protractor + Cucumber and it's working fine. I have question and didn't know where to ask it, so I do it here ;-). After searching on comparing a screenshot based on an element I found out that this is not possible with seleniumjs, but the ignoreRectangles() gives me the possibility to exclude a part of the viewport in the comparison. But is there a way to implement multiple ignoreRectangles() to exclude something from the top and the bottom so we can simulate this behaviour?

Tnx again and I'd like to hear from you guys

Grtz

Wim

wswebcreation commented 9 years ago

Didn't read the source that well,

Could be solved by using .ignoreRectangles([[0, 0, 1242, 195],[0, 492, 1242, 1716]]).

Sorry