Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>ElementHandle#uploadFile

Headless Chrome Deno API
Latest
method ElementHandle.prototype.uploadFile
Re-export
import { ElementHandle } from "https://deno.land/x/pptr@1.2.0/mod.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>