Evaluating bids

Add a function available in puppeteer to headless-chromium-php Accepted

Published on the June 01, 2020 in IT & Programming

About this project

Open

I need to be able to upload a file using an html file input field.
In puppeteer the code looks like that :

const inputUploadHandle = await page.$('Input[type=file]');
inputUploadHandle.uploadFile('/var/www/myfile.ext');

await page.waitForSelector('input[type="submit"]');
await page.evaluate(() => document.querySelector('input[type="submit"]').click());

The php api is here : https://github.com/chrome-php/HeadlessBrowsers
I need you to build that function using puppeteer as an example.
Maybe there's already a function to do that but I didn't find it.

Category IT & Programming
Subcategory Web development
What is the scope of the project? Small change or bug
Is this a project or a position? Project
I currently have I have an idea
Required availability As needed
Roles needed Developer

Delivery term: Not specified

Skills needed

Other projects posted by S.