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 compare the dynamic message using sahi

RahulRahul Members
edited November -1 in Sahi - Open Source
Can any one please let me know how to compare the message using sahi here the message displayed is dependent upon the date we selected in the test environment

Can we divide the message body into static part and dynamic part, here static means which is not changing upon change in date and dynamic means changing upon change in the date?

If yes can any one please let me know how can we do that

Thanks

Comments

  • nagarnagar Members
    var $Date = new Date();

    var $day = $Date.getDate();

    concatenate $day with your static string and compare.
Sign In or Register to comment.