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.

Partial assert on value inside an Input text box

1701198117011981 Members
edited November -1 in Sahi - Open Source
There is a input text box field, which has a value in read only mode...

I wish to put an partial assert on this value (value resides inside the input text box)...

Please suggest an solution for this...ASAP

Comments

  • Hi,

    Try using:

    if(_condition(_texbox("ID").value == /your partial text/))
    _log("Success message", "success");
    else
    _log("Failur Message", "failure");

    You can use similar logic in assertions also.

    Regards,
    Pankaj.
Sign In or Register to comment.