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 write wait function in sahi

AmolAmol Members
edited November -1 in Sahi - Open Source
we have our own framework for our appln & we are using sahi as automation tool.

_setValue(_textbox("LexIy"), "22");

objectname objecttype action, value
LexIy textbox setvalue 22

how to implement wait statement _wait(1000); for such kind of framework as it just has action & value in our case.

Comments

  • SumitraSumitra Members
    Hi Amol,

    Sahi has a implicit wait function which waits till the previous step is completed, is there any specific reason to add a explicit wait function.

    Regards
    Sumitra
  • AmolAmol Members
    Hi sumitra,

    Thanks for your reply.

    Yes we want to add explicit wait in our scripts as sometimes scripts fails since default wait is not sufficient for object to pop up
  • SumitraSumitra Members
    Hi Amol,

    If you have to, why don't you add a wait as another action in your framework?

    objectname objecttype action, value
    LexIy textbox setvalue 22
    wait 1000

    Regards
    Sumitra
Sign In or Register to comment.