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.

Read Only

djwhileydjwhiley Members
edited November -1 in Sahi - Open Source
Hi,

I am just getting started with sahi and have run across something I cannot figure out.
I would like to be able to check if a field is read only.

Any help would be great


thanks
djwhiley

Comments

  • narayannarayan Administrators
    Hi djwhiley,

    If _textbox("id") is disabled, do

    _assert(_textbox("id").disabled)

    For readonly field, do

    _assert(_textbox("id").readOnly)

    For a disabled field, the Controller may not identify the element on CTRL-Hover, so you may need to get its id from source.

    Regards,
    Narayan
  • Narayan,

    Thanks for your help this is very useful for me.

    thanks again
    djwhiley
This discussion has been closed.