galen icon indicating copy to clipboard operation
galen copied to clipboard

image validation is not accurate

Open zhangmeng712 opened this issue 10 years ago • 7 comments

I'm using the method of image comparison my js is like var Url = 'http://mo.m.taobao.com/etao/jusave/h5/branch/meizhuang';

testOnAllDevices('activity Image comparison page', Url, function (driver, device) { checkLayout(driver, "specs/comparison.spec", device.tags); }) my speck is like belows:

@objects list_item_first css .timeline = image compare = @on * list_item_first: image file ../imgs/list.png, error 4%

however is not locate the right element in ios simulator and sumsung edge device

zhangmeng712 avatar Sep 05 '16 14:09 zhangmeng712

Could you please provide screenshots and html reports?

ishubin avatar Sep 05 '16 14:09 ishubin

you see that the highlight is not right so does the report java.lang.RuntimeException: Specified area is outside for original image

image

zhangmeng712 avatar Sep 05 '16 15:09 zhangmeng712

I found this only happened in safari ios iphone6 9.1 simulator, even I changed the config to galen.browser.pageElement.areaFinder=jsbased_native it was still not correct

zhangmeng712 avatar Sep 06 '16 02:09 zhangmeng712

I thought that maybe the problem of navigationbar problem image

zhangmeng712 avatar Sep 06 '16 03:09 zhangmeng712

How are you doing it for mobile devices?

tadesushilgithub avatar Sep 21 '16 10:09 tadesushilgithub

@zhangmeng712 Yes, you are right that is related to the safari header and at the moment I don't have a solution for this problem

ishubin avatar Oct 12 '16 14:10 ishubin

I am running the test cases on chrome browser and in the reports galen is not highlighting the correct element. Any solution for that?

sujith0980 avatar Feb 27 '24 09:02 sujith0980