Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress gets stuck waiting for page load event after being redirected to a PDF file #5527

Closed
1 of 6 tasks
taoeffect opened this issue Oct 9, 2023 · 1 comment
Closed
1 of 6 tasks

Comments

@taoeffect
Copy link

Description

Cypress gets stuck waiting for page load event after being redirected to a PDF file

URL of Issue(s)

no link, sorry

Steps to replicate

It is really hard for me to provide steps to replicate because I'm trying to interact with my bank's website to automate downloading of statements.

I've gotten it to the point where it loads and renders a PDF (in Firefox, Electron won't render). The URL of the page does not end in a .pdf, but still Firefox displays a rendered PDF using its built-in PDF reader.

I'd like to download this PDF, but (a) I don't know how, (b) after Cypress gets to the point of displaying the PDF, it refuses to run any additional commands because it's waiting on a load event that never comes and then it times out:

Screenshot 2023-10-08 at 10 07 10 PM

Any suggestions?

Browser

Firefox 118.0.1

Device

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

Additional Information

Using Cypress 13.3.0

@taoeffect
Copy link
Author

Figured out how to do this: cypress-io/cypress#1551 (comment)

Also sorry for opening this issue in the wrong repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant