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.

In IE popup pdf file content is not showing

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

I have an issue.

In my application one Report link is there. If I click on that link one popup window will open and displays the report in PDF format. Here my issue is I am able to save the PDF file but in popup window pdf report is not showing. Also one more thing after saving the pdf file i want to close the pdf window but sahi is not recognizing.

I modified the userdata.properties to download the pdf files
Here is my code.

browser.link("PDF - Landscape").click();
Thread.sleep(20000);
String tempFileName = "C:/SahiV35/reports/Test123.pdf";
browser.execute("_sahi._saveDownloadedAs('"+tempFileName+"');");


Using with the above code i am able to download the pdf file but unable to view the pdf file.
Also unable to close the popup window because sahi is not identifying the popup window.
Is there any way to get the browser count so that using with the count i can close popup window


Regards,
Shankar L

Comments

  • Hi lshankar_mca,

    Can you tell me what changes you have made in userdata.properties.

    Also, let me know if you are downloading the pdf file manually or Sahi is downloading it in

    <sahi-home>/userdata/temp/download.

    Regards
    Sumitra
Sign In or Register to comment.