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.

Having trouble with ZK pop-up Windows

jwrightjwright Members
edited November -1 in Sahi - Open Source
Hello, we look at using Sahi to automate a ZK app and are having a small problem.

We have a page that you click a link, and a pop-up window appears and allows you to fill out a form. When scripting this, it opens the window, but then pauses for ~2 mins before continuing to fill out the form. It seems that Sahi doesn't know the window is open and waits until it hits its timeout to continue.

Is there any workaround for this that doesn't involve lowering the timeout values?

-Jared

Comments

  • I use a wait until true condition:

    while(true){
    var $condn;
    _set($condn, _exists(element(objName));
    if($condn) break
    else _wait(1000);
    }

    Hope this helps.
  • I was hoping to avoid putting wait in my scripts.
  • Changing "xhr.wait_ready_states=1,2,3" in sahi.properties to "xhr.wait_ready_states=2" fixed this problem for me.
  • narayannarayan Administrators
    Hi Jwright,

    That could very well be the right solution. How did you find out that you need to change it? I don't think we have published that yet! Am glad you found it and shared it.

    Regards,
    Narayan
Sign In or Register to comment.