<!-- 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(): Promise<void>;
```
<b>Returns:</b>

Promise&lt;void&gt;

