visualAssert, visualVerify is not working in Chrome, Firefox or Edge

I get this error (Image ‘sc1_dpi_144.png’ (conf. = 0.6) not found) on this code and many others when I try to make changes. Same page I get a screenshot, then check if there are modifications. :

{
“Name”: “visual2”,
“CreationDate”: “2024-11-4”,
“Commands”: [
{
“Command”: “captureEntirePageScreenshot”,
“Target”: “C:\Users\Silviu\Desktop\uivision\images\sc1_dpi_144.png”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “visualAssert”,
“Target”: “sc1_dpi_144.png”,
“Value”: “”,
“Description”: “”
}
]
}

Can you please post a video or at least screenshot of the situation?

Hi,
here are some screenshots.

If i use select, I get xxx_dpi_130.png and the find It’s not working, same error.

But if I modify in xxx_dpi_144.png, find is working.

But with screenshot it’ s not working no matter the dpi

If you recreate the search image, does it work then?

If I create the image using select button, I need to modify the name manually from 130_dpi to 144_dpi to work.

Oh, I understand now. Can you please upload (attach to the forum post) the __lastscreenshot.png file and the xxx_dpi_144.png image? Then we can debug the computer vision recognition. It seems something goes wrong with the screen DPI connection and thus the image is not scaled correctly.

  • __lastscreenshot.png can be found in the “Screenshots” tab:

image

  • _xxx_dpi_144.png can be found in the “Visual” tab:

image