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

uploadFile in puppeteer-firefox #3762

Closed
fran0254 opened this issue Jan 13, 2019 · 5 comments
Closed

uploadFile in puppeteer-firefox #3762

fran0254 opened this issue Jan 13, 2019 · 5 comments

Comments

@fran0254
Copy link

Is it possible to upload files with the puppeteer-firefox library? It's not working for me, I'm adding code

const pptrFirefox = require('puppeteer-firefox');

  (async () => {

       const browser = await pptrFirefox.launch( {headless: false });
       const page = await browser.newPage();   

    await page.goto('https://www.webejemplo.com', {timeout: 0});
    await page.waitForSelector('input[type=file]', {timeout: 0 });
            
            var fileUploaders = await page.$("input[type=file]");                   
                       
            await fileUploaders.uploadFile('foto_0.jpg');        
                   
            await page.waitFor(3000);

})();
@matheuschimelli
Copy link

Hey, take a look at https://aslushnikov.github.io/ispuppeteerfirefoxready/ . It looks like not working yet

@vovanluan
Copy link

I am facing error err Error: Protocol error (DOM.setFileInputFiles): DOM.setFileInputFiles RemoteAgentError@chrome://remote/content/Error.jsm:25:5 when uploadFile in firefox too. Is this feature available in puppeteer firefox?

@skipjack
Copy link

skipjack commented Apr 29, 2021

Seeing the same error as @vovanluan when using puppetry. I see this merged pr (referenced above), @aslushnikov based on that should we expect this to be fixed?

@skipjack
Copy link

Tried with FireFox Beta as well, still no luck.

@nihirv
Copy link

nihirv commented Dec 11, 2022

This is still an issue

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

No branches or pull requests

5 participants