18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

How to check that an image really exists?

firescarletfirescarlet Members
edited November -1 in Sahi - Open Source
Hi!

Is it possible that an image really exists? _exists and _isVisible give both true even if the image has been deleted.

Regards

FireScarlet

Comments

  • narayannarayan Administrators
    _exists and _isVisible will only be able to tell you if an img tag is visible. It may not be simple to verify if the actual image file really exists. You could try using Java's URL class to fetch the image URL and check if the size is correct.

    Regards,
    Narayan
Sign In or Register to comment.