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.

How to click "Refresh" button in IE 7.0 using SAHI?

santosh.takekarsantosh.takekar Members
edited November -1 in Sahi - Open Source
Hello,

How to refresh 'Internet Explorer 7.0' browser, using SAHI scripts.
I am using SAHI for automating web application and need to refresh my Web Application Under Test.

Kindly help me in doing one of the following things using SaHI scripting:
1) Clicking "F5" button of keyboard
2) On IE 7.0, select "View" menubar and click on "Refresh" option
3) Click on " Refresh" button of Internet Explorer


I have noticed that, by 'Pressing' CTRL key and hovering mouse on Internet Explorer's menu bar, SAHI could not identify browser objects.; This could be behavior of SAHI, I am not sure.


Thanks,
Santosh Takekakr

Comments

  • narayannarayan Administrators
    You cannot access browser buttons using Sahi.
    You can however refresh using
    _call(top.location.reload());
  • Hi Narayan,

    I am able to refresh browser using " _call(top.location.reload()); "


    Thank you for quick reply :)

    I Love SAHI,
    -Santosh Takekar
  • Hi Santosh,

    You may also appreciate going through the the following Browser Objects Referenc at w3schools. It will help in similar situations.
    http://www.w3schools.com/jsref/default.asp

    Regards,
    Pankaj
  • How do you handle the refresh confirmation message? Sahi does not recognize the pop up window and the reload does not go through until you click 'OK' on resend information message.
Sign In or Register to comment.