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.

_wait not working

rgreenberg007rgreenberg007 Members
edited July 2013 in Sahi - Open Source
Trying to wait on a component to load - does not seem to work - always reaching the timeout time -
Any advise - or useful snipets would be great.

Best Answer

  • Hi rgreenberg007,
    I have written a sample script for you. In the script, the wait condition is set as per your requirement. Please have a look at it.
    _navigateTo("http://sahi.co.in/demo/waitFor.htm");
    _click(_button("Click me"));
    _wait(_getText(_textbox("t1")) == "populated");
    _assertEqual("populated",_getText(_textbox("t1")));
    

    If your script has been written in the same way and it still doesn't work for you, can you provide your test page and script here?

    Regards.

Answers

  • Thanks - I did get things working - apparently some component references I was using did not seem to work correctly or I was using the wrong references to them. Buttons work very reliably, though.

    I had another problem getting a permissions error when I selected a link component and then clicked the link. I am no longer first selecting the component and things work for me.
This discussion has been closed.