-
Notifications
You must be signed in to change notification settings - Fork 55
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
How to download files #103
Comments
after reading about the topic it is clear why this window is never present in window handles, but still not clear what to do with it. Is there a way to use Firefox profiles? |
re: alert, I think it makes sense that there's no alert, because it's a download, not a javascript for the rest, I must admit that I don't know... maybe @ojii has an idea. |
Firefox(**{"moz:firefoxOptions": {"profile": PATH_TO_PROFILE}}) |
mozilla/geckodriver#1776 and mozilla/geckodriver#1707 have snippets to configure Firefox to download files automatically without a popup. Looks like the implied advice is still the same†, to configure the browser not to show a dialog when downloading files. † stackoverflow advice from 2009 https://stackoverflow.com/a/1176389/705086 |
@ojii unfortunately, passing the profile doesn't work, it either doesn't do anything like here #30 (for me it throws an error |
It should be |
@ojii I tried that back then, and it gave me |
Looks like a silly typo, which would explain the "set" type in the error: |
No, the string @ojii provided is not working, giving either |
I believe your analysis is correct, a duplicate of #30, where PR would be very welcome 🙏 |
I'm trying to download files with Arsenic and I don't know how to manage the Firefox pop-up window
await session.get_alert_text()
gives meNoSuchAlert
error,await session.get_window_handles
returns only the active window and no pop-up.What's the best way to deal with it?
The text was updated successfully, but these errors were encountered: