question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

uploadFile in puppeteer-firefox

See original GitHub issue

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);

})();

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
vovanluancommented, Oct 4, 2020

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?

0reactions
nihirvcommented, Dec 11, 2022

This is still an issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Practical Puppeteer: How to upload a file programatically
Today I will share about how to upload file using Puppeteer. If you don't know about Puppeteer yet, here is the brief explanation....
Read more >
Handle File Upload with Puppeteer - CherCher Tech
With puppeteer, we can upload the file using the fileChooser, by waiting for the element then clicking the element which opens the system-based...
Read more >
How to perform FileUpload testing with Puppeteer - YouTube
In this video, we will discuss working with FileUpload in Puppeteer.In this video we will discuss Working with XPath in Puppeteer automation ...
Read more >
Working with FileUpload in Playwright - Not the puppeteer way
In this video we will discuss how we can work with FileUpload of Playwright API and how different it is from Puppeteer.
Read more >
How to achieve File Upload Using Puppeteer - YouTube
How to achieve File Upload Using Puppeteer | FileChooser MethodMy second Channel:WrestleTalkByAzhar ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found