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 get the reload message to be automatically accepted

handytomhandytom Members
edited November -1 in Sahi - Open Source
Hi

I am trying to test page accessibility which requires me to login as a certain user. traverse some pages then logout and go back the correct number if pages in history and start reloading them 1 by 1 and verify that I cannot access the page.

The snippet of code below is the area I have a problem with.
_call(window.history.go(+1));

_expectPrompt("To display this page, Firefox must send information that will repeat any action (such as a search or \norder confirmation) that was performed earlier.", true);

_call(window.location.reload());

How do I get the reload message to be automatically accepted so that I do not have to manually click 'Resend' each time?

Cheers
Tom

Comments

  • I have also noticed that I cannot load my scripts and leave them running by themselves because of this issue.

    They will get stuck waiting on the 'Resend' click and when I come back and click that the test immediately fails with this timeout error logged.
    JSERROR
    Step >_sahi._assertTrue(_sahi._containsText(top.document.body, "Change the details below as required"));< did not complete in 130 seconds. at Nov 13, 2009 5:36:25 PM
    

    Is it possible to automate this 'resend' click with SAHI?

    I have been looking into trying to disable this confirmation popup from Firefox itself but with no success so far.
    If anyone knows how to do that either I would be grateful?

    Cheers
    Tom
Sign In or Register to comment.