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.

Issue handling prompts

lalwaniajaylalwaniajay Members
edited November -1 in Sahi - Open Source
Hi,
I have issues in recording actions performed on a prompt. As in enter values and click ok.
I am using the following script:

_expectPrompt("Please enter an image URL", "<some url>");
(This is what is recorded.)

On playback, nothing really happens in the prompt and the prompt stays active.
Could u please help me out with this.

Thanks,
Ajay

Comments

  • Hi Ajay,

    I am also facing a similar problem what you are facing. In my case while playing back the script the confirmation dialog appears, but as per Sahi's working practice the confirmation dialog should not appear and Sahi should deal it silently.

    My playback hangs at this moment and after reading your post I feel that you are also facing a similar problem.

    I have posted this issue, if I will get some workaround or solution I will let you know.

    Regards,
    Sumeet
  • narayannarayan Administrators
    Hi guys,

    The tests for prompt confirms that it works across frames and iframes on IE and FF. Could you clear your browser cache and check? The only reason it may throw up the prompt/confirm is because Sahi's code to substitute window.confirm and window.prompt was not invoked, which can happen if the page is picked from browser cache.

    Regards,
    Narayan
  • Hello Narayan,

    I am still facing the same problem, I cleared the browser cache and tried playback, but on clicking a link related to fie download I am still seeing the "Confirmation dialog box". I am using IE8 on Windows7 enterprise edition with Sahi V3(Build-2010-06-11).

    Kindly provide your feedback.


    Regards,
    Sumeet
Sign In or Register to comment.