setFileInputFiles method

Future<void> setFileInputFiles(
  1. List<String> files, {
  2. NodeId? nodeId,
  3. BackendNodeId? backendNodeId,
  4. RemoteObjectId? objectId,
})

Sets files for the given file input element. files Array of file paths to set. nodeId Identifier of the node. backendNodeId Identifier of the backend node. objectId JavaScript object id of the node wrapper.

Implementation

Future<void> setFileInputFiles(List<String> files,
    {NodeId? nodeId,
    BackendNodeId? backendNodeId,
    runtime.RemoteObjectId? objectId}) async {
  await _client.send('DOM.setFileInputFiles', {
    'files': [...files],
    if (nodeId != null) 'nodeId': nodeId,
    if (backendNodeId != null) 'backendNodeId': backendNodeId,
    if (objectId != null) 'objectId': objectId,
  });
}