Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method ElementHandle.prototype.uploadFile
import { ElementHandle } from "https://deno.land/x/pptr@1.2.0/src/JSHandle.ts";

This method expects elementHandle to point to an input element.

Parameters

...filePaths: string[]
  • Sets the value of the file input to these paths. If some of the filePaths are relative paths, then they are resolved relative to the current working directory

Returns

Promise<void>