Problem in Reports module with .crdownload

Hello Friends,

I have Reports module in my project PDF & Excel. I am verifying the heading of that report after the report is downloaded in my local. In regards to that I have written a global function and calling that function using Custom Keyword. It is working fine so far but today when I execute them all test cases are getting failed and below is my analysis.

Currently the new chrome browser has more security and the file downloading in insecure mode and prompting the User to keep it or not. Until then the file is downlading with .crdownload (test.pdf.crdownload) once the User hits the Keep button then it turned to secured file shoaing as test.pdf. so my scripts are failing as the file is appending with .crdownload.

I tried to change the setting in Privacy and security section in the browser with Enhancement and No security modes but still facing the same issue.

Can some one please help me to fix this issue?

Thanks in Advance!!!

1 Like

try emulating manual key Press actions

1 Like

if you are downloading particular domain then you can change below setting in chrome browser

  1. Go to > Settings > Privacy and security (on left) > Site settings
  2. Scroll all the way down & click Additional content settings
  3. Select “Insecure content”
  4. Under “Allowed to show insecure content” click “Add”
  5. Type in “http://” (ex: http://test.com) and click “Add”

Thanks Atul for the response.

It worked in the Physical browser but please provide the suggestions how to apply the same settings in runtime browser if any.

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

thanks Dinesh.

please gimme some example to hit keep button on the below screen shot.

image

1 Like

Okay sure, Please wait for some time…

please refer these articles automated testing - Selenium Download Keep and Discard Problem (.cer or xml extensions) - Software Quality Assurance & Testing Stack Exchange and How to download file using Selenium & Python | BrowserStack and let know if helps

1 Like
Robot robot2 = new Robot();
    robot2.keyPress(KeyEvent.VK_ENTER);
    robot2.keyRelease(KeyEvent.VK_ENTER);
    Thread.sleep(1000);
1 Like

not worked.

Also tried by adding desired capabilities still no luck