wswebcreation / protractor-image-comparison

npm-module to compare images with protractor
86 stars 38 forks source link

Failed: Filter: Unknown filter-type 238 #53

Closed sushantwingified closed 6 years ago

sushantwingified commented 6 years ago

Using Chrome 65 on Windows, I get an error when the verifyFullPageScreenshot function is called. Error: Filter: Unknown filter-type 238 at Filter._decode (~\node_modules\pngjs-image\lib\png\processor\filter.js:354:10)

wswebcreation commented 6 years ago

Hi @sushantwingified

Can you provide more logging and the steps where the error happens? So:

Based on that info I can help you further. Tnx

sushantwingified commented 6 years ago

Hey @wswebcreation , 1) This error occurs whenever I call this method - browser.protractorImageComparison.checkFullPageScreen(tag); The tag is the name of the screenshot passed in a method parameter. 2) There is a different behavior in Firefox, it takes the screenshot of only the contents of the screen displayed without scrolling and not the complete page which is not in the viewport. However, there is no error displayed. 3) For the page example - could you please make a free trial account on https://vwo.com, after login please navigate here - http://app.vwo.com/#/ideafactory/idea ( This is the page where the error occurs). 4) For better logging - Please tell me what else would you need - I am posting the stacktrace here. Stack: Error: Filter: Unknown filter-type 238 at Filter._decode (~\node_modules\pngjs-image\lib\png\processor\filter.js:354:10) at Filter.<anonymous> (~\node_modules\pngjs-image\lib\png\processor\filter.js:319:8) at Interlace.processPasses (~\node_modules\pngjs-image\lib\png\processor\interlace.js:185:4) at Filter.decode (~\node_modules\pngjs-image\lib\png\processor\filter.js:302:12) at Chunk.decode (~\node_modules\pngjs-image\lib\png\chunks\IHDR.js:536:23) at ~\node_modules\pngjs-image\lib\png\decoder.js:83:18 at ~\node_modules\pngjs-image\lib\png\utils\chunkUtils.js:168:4 at Array.forEach (native) at Decoder.applyWithSortedChunks (~\node_modules\pngjs-image\lib\png\utils\chunkUtils.js:167:10) at Decoder.decode (~\node_modules\pngjs-image\lib\png\decoder.js:80:7) at Function.PNGImage.loadImageSync (~\node_modules\pngjs-image\index.js:221:17) at protractorImageComparison._saveFullScreenshot (~\node_modules\protractor-image-comparison\index.js:176:24) at _scrollToVerticalCoordinateAndWait.then.then.then.then.then (~\node_modules\protractor-image-comparison\index.js:851:33) at ManagedPromise.invokeCallback_ (~\node_modules\selenium-webdriver\lib\promise.js:1376:14) at TaskQueue.execute_ (~\node_modules\selenium-webdriver\lib\promise.js:3084:14) at TaskQueue.executeNext_ (~\node_modules\selenium-webdriver\lib\promise.js:3067:27) at asyncRun (~\node_modules\selenium-webdriver\lib\promise.js:2927:27) at ~\node_modules\selenium-webdriver\lib\promise.js:668:7 at process._tickCallback (internal/process/next_tick.js:103:7) Have replaced the actual path with a tilde.

sushantwingified commented 6 years ago

Hey @wswebcreation , How can I check the test on saucelabs for this method ( checkFullPageScreen)?

wswebcreation commented 6 years ago

@sushantwingified

Can you tell a bit more what you mean?

sushantwingified commented 6 years ago

I wanted to check if the specific test for checkFullPageScreen method has been passing or failing?

wswebcreation commented 6 years ago

Hi @sushantwingified

Can you please provide me with an example project so I can test this for you. Due to some time issues I don't have enough time to figure this out and script it. I need to prepare for a presentation I give on Friday, sorry

Tnx in advance.

wswebcreation commented 6 years ago

Going to close this issue due to inactivity