Skip to main content
Module

x/puppeteer/mod.ts>ElementHandle#uploadFile

A port of puppeteer running on Deno
Latest
method ElementHandle.prototype.uploadFile
Re-export
import { ElementHandle } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";

This method expects elementHandle to point to an input element.

Parameters

this: ElementHandle<any>
  • Sets the value of the file input to these paths. If a path is relative, then it is resolved against the current working directory. Note for locals script connecting to remote chrome environments, paths must be absolute.
...filePaths: string[]

Returns

Promise<void>