[Home](./index.md) > [puppeteer](./puppeteer.md) > [FileChooser](./puppeteer.filechooser.md) > [cancel](./puppeteer.filechooser.cancel.md)
## FileChooser.cancel() method
Closes the file chooser without selecting any files.
Signature:
```typescript
cancel(): Promise;
```
Returns:
Promise<void>