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.

is it possible to skip the script if browser response is taking time

gaveyomgaveyom Members
edited November -1 in Sahi - Open Source
Hi Sahi Team/ Users,

is it possible to skip the line in a script if browser is response is taking long time

Example:

if there is "Inbox", "Sentmail", "chatlist" links in my page
Now i clicked on "sentmail" link but the response is taking time to display at that time i wanna skip to next link like "inbox"

is it possible to skip the link in script

pls let me know if it is possible

Thanks in advance

Comments

  • gaveyomgaveyom Members
    edited November 2012
    Dear Narayan/ Users,

    Does any 1 know the solutions for above issue, i wanna skip the line in script if it wont response for long time

    @Narayan: Hope u know the solutions for this or there is no soluton for this is issue ?

    what ever it may be, pls let me know the answer

    thank you
  • SCKSCK Members
    Hi,

    I am unaware if there is any function in SAHI to do so. I think it can be achieved programmatically.

    Try this : Wait for say 60 seconds after clicking 'sentmail' link or wait till some element that appears after clicking sentmail link. I am assuming there will be sentmail heading after clicking on ''sentmail' link. Using if- else clause check whether the element is visible and perform the validations/actions if it's visible.

    Pseudo code:
    _click(_link("sentmail"));
    _wait(60000, _heading("sentmail"));
    
    if(_isVisible(_heading("sentmail"))) {
    //perform validations and operations
    }
    // rest of the code
    
    Hope this helps, thanks!
  • Hi SCK,

    thank you very much for your suggestion.

    really its helped me a lot
Sign In or Register to comment.