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.

Waiting for processes to finish and Java

johnclarkejohnclarke Members
edited April 2012 in Sahi - Open Source
I have a number of questions regarding Sahi:

1. When the submit button is clicked on my form a “Please Wait” dialogue appears. Unfortunately Sahi seems to continue processing when the page in this “Please Wait” dialogue appears.

Basically I want Sahi to wait until the parent window of this dialog box has completed loading. In some cases this can take up to 22 minutes(possibly longer). How can this be achieved ?

2. I notice that Sahi allows a certain amount of time for steps to be executed before moving on to the next step. Is there anyway to get Sahi to just wait until that step is complete rather than wait a specific length of time? I ask that because sometimes the system I am testing can be slow.

3. I understand that I can write Java code for tests. Is there a tutorial that explains how to go about doing this (e.g. writing, executing, etc)?

I am currently using Windows XP Pro.

I would appreciate all advice regarding this.

John

Comments

  • globalwormingglobalworming Moderators
    edited April 2012
    Hi

    have a look at http://sahi.co.in/w/java

    i would recommend you write a a loop like
    do {
      browser.waitfor(10000);
    } while (!browser.element.exists())
    
    or something like that. Just chose an element which will appear very late.
    In the sahi.properties you can increase the time sahi waits for a step to finish.

    Regards
    Wormi

    BTW: just out of curiosity... what web application takes half an hour to load?^^
  • Wormi,
    Thanks for your reply to my message. I will try that today.

    Best Wishes

    John
Sign In or Register to comment.