galen icon indicating copy to clipboard operation
galen copied to clipboard

Image comparison do not work at SpecValidationImage.java:107 when Element height turn out to be 0

Open dhapolapankaj opened this issue 6 years ago • 1 comments

Hi @ishubin

I seems to have come across an odd behavior.

I have below spec file

@objects bodyImage xpath //body = Comparing Image with current screen= bodyImage: image file ExpectedImage1\ExpectedImage.png

here the path mentioned for Expected Image is incorrect. In my local system Windows 10 machine, I get Image not present error which is an expected one image

but when I run the same code in Windows 2016 Server VM. It isn't failing. I see below report

image

Please note that in above code 2.png, 3.png and 4.png is not existent.

I even tried passing the right image path and it is not picking up the image for comparison. I get above report.

Could you please have a look? Let me know what additional details I need to provide.

Thanks PD

dhapolapankaj avatar May 26 '18 03:05 dhapolapankaj

Hi @ishubin I think I found a bug. The height of the "bodyImage" turn out to be 0

image

image

looks like its an issue with Selenium.

image

Does any one have resolution? Meanwhile search in WebDriver project.

dhapolapankaj avatar May 26 '18 09:05 dhapolapankaj