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.

Refresh a Page

Tanna1Tanna1 Members
edited October 2013 in Sahi - Open Source
Hi,
I have a website wherein, all the elements are hidden when I login, I need to right click and select refresh. Only then the elements become visible. If I press F5, then I am logged off. So I need to right click and refresh. Is there a way I can do this in Sahi?

Answers

  • Will reloading the page works:- :- _execute(location.reload());
  • Hi, this reloads the entire page which is not I want. I just need to refresh a particular segment. Thanks anyways.
  • Hi Tanna,
    Try using the following code:
    var $win = _selectWindow("segment_to_be_reloaded");
    _execute($win.location.reload());
    
    Please let me know if this works for you.

    Regards,
    Pratyush
Sign In or Register to comment.