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.

CustomAttributes

haripriya.yerraharipriya.yerra Members
edited November -1 in Sahi - Open Source
Hi,

I have a image tag, for that image tag i am adding custom attributes like readable or writable. i want to read those attribute values. so please tell me is there any way to read custom attribute values in sahi.

its urgent plsssssssssssss

Thanks and Regards,
priya.

Comments

  • narayannarayan Administrators
    Just use:
    _image("myImage").getAttribute("writable")


    Example:

    _alert(_image("myImage").getAttribute("writable"));

    or

    var $isWritable;
    _set($isWritable, _image("myImage").getAttribute("writable"));
    _alert($isWritable);
  • Thanks for the response, its working fine
This discussion has been closed.