VisualCeption
VisualCeption copied to clipboard
ImagickException is received in dontSeeVisualChanges() if using fullScreenShot: true setting
Hello,
today I ran into an odd problem using VisualCeption. When I wrote all my tests everything was working just fine, all images were generated and so on. However, latter in the day, when I was perfecting my tests, I started getting the following error:
[ImagickException] geometry does not contain image
' @ warning/transform.c/CropImage/643`
I narrowed down the cause to setting fullScreenShot: true
. If using false, everything works just fine.
At first, I thought there is some kind of queue which is cropping images and therefore I cannot get anything else processed, so I tried reinstalling Imagick, php, rebooting computer and so on. Did not manage to get it working. And the error is always the same.
As stated above, it was working and then it just stopped. By any chance I missed something? Or maybe there is some kind of cache I am not aware of and clearing would bring back working VisualCeption?
Configurations I tried so far: Firefox 71.0 and few older versions, selenium-standalone-server (from newest down to 3.8), Codeception 3.1.2, php 7.4 and macOS Catalina 10.15.1
@juztaz this fork https://github.com/zoonru/VisualCeption works fine, they added 2 new methods dontSeeFullVisualChanges, SeeFullVisualChanges