-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Question] Allow Multiple Downloads Notification #3244
Comments
@ok-AK I've never seen this dialog in chromium. How do I reproduce this? How do I download multiple files so that this dialog is shown? |
@aslushnikov In general, Chrome does this whenever a site offers the user the ability to download more than one file at a time instead of zipping the separate files into one. My use case does not allow me to change the codebase to offer a single zipped file which is why I am going down this multi-download route. Latest Edge shows the same popup as Chrome (expected I am sure). Firefox treats it differently and prompts for each file but I have not investigated it and I do not need Firefox for my use case. |
I think you just need to pass The following script works for me with Playwright 1.6 and downloads both files: (async () => {
const browser = await require('playwright').chromium.launch({ headless: false, downloadsPath: './tmp' });
const page = await browser.newPage({ acceptDownloads: true });
await page.goto('https://codepen.io/okak/pen/XWdJjGj');
const iframe = await page.waitForSelector('iframe#result');
const frame = await iframe.contentFrame();
await frame.click('text=Test me using Chrome');
})(); Please reopen if this does not solve the issue. |
Hello,
When using Chrome and attempting to download multiple files at the same time. Chrome displays a notification saying, "Localhost wants to Download multiple files - Allow/Block".
I use a jest-playwright.config.js file to set browser context options. I have the following in my config file and I can successfully test cases involving single file downloads.
jest-playwright.config.js
Is there a setting or flag I can use to either make the notifications always allow or a download specific setting that will automatically allow multiple files to download? Thanks!
The text was updated successfully, but these errors were encountered: