Taiko
Documentation

Home / API Reference

attach

Attaches a file to a file input element.

Examples

await attach('c:/abc.txt', to('Please select a file:'))
await attach('c:/abc.txt', 'Please select a file:')

Parameters


filepath

The path of the file to be attached.


to

The file input element to which to attach the file.


Returns

This API does not return any values