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 Use wait for an dynamic id div.

edited November -1 in Sahi - Open Source
Hi,

I have some functionality by which i can add an job.

Now this job goes into Progress state first and then after soem time goes to completed state.

source Code i can see is like :


<DIV class="cell-inner overflow-hidden" id="z_0l_002!cave" style="WHITE-SPACE: normal; TEXT-ALIGN: left">
In Progress
</DIV>


id is dynamic.

Now how can i use wait so that i can wait till state Completed.

Any help is appreciated.

thanks
Bhavesh

Comments

  • Hi bhavesh.sharma26,

    If the id is dynamic then you can use Regular Expression.

    Use _wait() API to wait till the state completed.

    For more Details about _wait() API:

    http://sahi.co.in/w/_wait

    Regards
    Sumitra
Sign In or Register to comment.