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.

Date Validation

Tanna1Tanna1 Members
edited August 2013 in Sahi - Open Source
HI,

Can anyone please tell me how to validate date in sahi? I need to verify if the date on the screen is in mm/dd/yyyy format

Answers

  • I found the answer to this one.

    It is

    _assertEqual(/^(0?[1-9]|[12][0-9]|3[01])\/(0?[1-9]|1[012])\/((19|20)[0-9][0-9])$/, _getText(_cell("vertical_value[18]")));
This discussion has been closed.