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.

Page refresh

vazidvazid Members
edited November -1 in Sahi - Open Source
Hi,

Has any one tried to refresh the web page using sahi script. I have a requirement like..I've to refresh the page so that it loads new values in it and then i've to perform my actions on those new values....

Can any one help me out??

Rgds,

Comments

  • Hi,

    I havn't used it but i hope using window.location.reload() will help.

    Regards,
    Pankaj.
  • vazidvazid Members
    I forgot to mention that the page i'm trying to refresh is a popup. Would this syntax work?
    _popup("popupname").location.reload()?
  • I m not sure.. :(
    give it a try..another thing u can try doing is using the navigateTo() function if the url for the page is already known.
  • Cubicle.JockeyCubicle.Jockey Members
    edited August 2008
    you can write a function:

    function ReloadPage()
    {
    window.location.reload();
    }


    then call it:

    _call(ReloadPage());

    if you don't call it in this fashion you get infinite refresh!! fun times learned the hard way
Sign In or Register to comment.