EmergenceAI / Agent-E

Agent driven automation starting with the web. Discord: https://discord.gg/wgNfmFuqJF
MIT License
815 stars 114 forks source link

[BUG] Agent-e browser repeatedly opens PDF instead of downloading #110

Open tanmaysharma2001 opened 5 days ago

tanmaysharma2001 commented 5 days ago

Title

Agent-e browser repeatedly opens PDF instead of downloading

Description

When asked to download a pdf from a website, the agent-e browser running with chromium engine keeps on opening it.

Steps to Reproduce

  1. Open the agent-e browser with the Chromium engine.
  2. Navigate to a website with a downloadable PDF link.
  3. Click on the link intending to download the PDF.

Expected Behavior

The browser should automatically download the PDF file to the specified download location on the user's device.

Actual Behavior

The browser repeatedly opens the PDF in a new tab instead of downloading it, causing an infinite loop and preventing the user from saving the PDF locally.

Environment

deepak-akkil commented 5 days ago

Could you give an example to reproduce this? an example prompt and/or the website with the download link where this happens?

tanmaysharma2001 commented 5 days ago

@deepak-akkil Thanks for your reply. An example of such incident is when i want to download a PDF from any website. For instance, arxiv: https://arxiv.org/abs/2303.02318. If i give it a prompt that download the PDF from this URL. It will open it. But when i used firefox (i integrated a mini version myself) it downloaded it.

When it opens it instead of downloading it gets stuck in a loop trying to download it again and again.