<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [FileChooser](./puppeteer.filechooser.md) &gt; [cancel](./puppeteer.filechooser.cancel.md)

## FileChooser.cancel() method

Closes the file chooser without selecting any files.

<b>Signature:</b>

```typescript
cancel(): void;
```
<b>Returns:</b>

void