<!-- Do not edit this file. It is automatically generated by API Documenter. --> [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. <b>Signature:</b> ```typescript cancel(): void; ``` <b>Returns:</b> void