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.

Authentication Issue with pop-up window

kinnukinnu Members
edited November -1 in Sahi - Open Source
Hi Narayan,

I am trying to login as a an user to access a product and the issues I encountered is:

Scripts:

_click(_link("My IBFD"));
_click(_submit("Login"));
_setValue(_textbox("authUser"), "username");
_setValue(_password("authPassword"), "password");
_click(_submit("Authenticate"));

1. After clicking on Authenticate, I am getting a pop-up box with the following message:
- To display the webpage again, IE needs to resend the information you've previously submitted.
If you were making a purchase, you should click cancel to avoid a duplicat transaction. Other wise, click Retry to display the web page again.
Retry Cancel

2. clicking on Retry, its taking to the page I wanted. Clicking on Cancel, connection error.

3. clicking on my product button, another browser window opens which sahi is unable to record the steps or play.

3. Playing scripts only till Authentication part, the pop-up window with message (Retry Cancel) is displayed.

Thanks

Comments

  • narayannarayan Administrators
    Hi,

    Can you try with the latest build and check?

    Regards,
    Narayan
  • Good morning,

    In Version 2010-06-10 the problem is still there.
    Do you have another idea to solve the problem?

    Regards,
    Julian
  • narayannarayan Administrators
    Hi Julian,

    Is your issue the same as Kinnu's? (Are you working on the same project or is this issue just similar?)

    Could you specify whether the resubmit alert normally occurs when not using the proxy?

    Regards,
    Narayan
  • Hi Narayan,

    I'm not working on the same project but my issue is similar.
    I will try to explain you my Action:

    1. Open a page (_navigateTo($Link);
    2. Authenticate with username und password
    3. Change to an other Page on the Device
    4. Change a Value in a Textbox
    5. Click Submit
    6. Authenticate again withe the same username and password
    7. The pop-up box which kinnu has describe comes up

    If I test the same without sahi I will get the pop-up box also!
    The pop-up box is from the IE8 and not an HTML-Page so you can't Record the click on "Retry"

    If you like I can make a Screenshot for you.

    Regards,
    Julian
  • narayannarayan Administrators
    Unfortunately, Sahi will not be able to click on that dialog. You will need to change the browser's settings to disable that popup. (I am not sure how though.) You could also use Java or AutoIt to click it.

    Could you still email a screenshot to support@sahi.co.in, so that we can be very sure?

    Regards,
    Narayan
  • Hi,

    Yesterday I have made the Test again without Sahi and with an other Computer.
    My Result was that the pop-up box do not came.
    I think I have made a mistake in my first Test.

    Without sahi I only must login twice but the pop-up box do note came!
    I think there must be a difference between the method of IE8 and sahi.
    I mean to know that this pop-up box in IE7 do not exists but I'm not sure.

    You must have a new E-Mail with the Screenshot of the pop-up box ;)

    We will write a tool that can click the Button if there is no way to solve the problem.

    After this Day I'm on Holiday for the next three weeks so I will call you back after them.

    Thanks a lot
    Julian
Sign In or Register to comment.