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.

Javascript Popup Window

kphapakdykphapakdy Members
edited November -1 in Sahi - Open Source
Hi. I have gone through the forum regarding popup windows and seem to can't pinpoint the answer. In my app, when I click on export to PDF, I get a javacript popup window with message "Do you want to open or save this file?". The three buttons are Open, Save, and Cancel. The window title is "File Download". The issue is that I can seem to record or capture the window at all in order to click on any of the buttons.

Thanks,
Kai

Comments

  • Hi,
    Did you by any chance find a solution to your problem??
  • hi kphapakdy,
    What version of Sahi are you using?
    Please do the following steps:

    1) Open the file:
    <path_to_sahi>\userdata\config\download_contenttypes.txt
    
    2) Add the following line to the text file if it is not there:
    application/pdf
    

    3) Run your script and try again.

    If it doesn't work for you or "application/pdf" is already there in the file, please let me know.

    Regards.
Sign In or Register to comment.