1. Does VerifyAsset check if the image exists in the specified locator and is identical with the one stored, if on screen?
2. And does ImageExists verify if an identical image or identical piece of an image exists anywhere in the page, the part visible on screen?
3. Is it true that tryVerifyAsset is missing from Silk Test Standard?
4. So how could I pre-check using the verification's name or something simpler, that the image exists before testing it? And then how to supress and use the exception without going into settings (our clients want everything programatically), no app settings.
5. Just theoretically: is it possible to do image verification without it being an asset? Like we managed to read parameters from Excel files without using ActiveData, at our clients' request.
P.S.
This approach I imagined first checks if the image exists and identical somewhere on the visible page with ImageExists,
and with the certitude that it exists and identical, checks even that the locator is correct with the VerifyAsset, too.
It seems an improvisation, maybe there is a beter way. Not creating two assets for a check that will anyway give a fatal error if the locator isn't right anymore.
If(.ImageExists("logoAsset")) Then
Workbench.VerifyAsset("logoVerification")
Else
Workbench.Verify(True, False, "image not found")
EndIf