puppeteer/docs/api/puppeteer.puppeteernode.executablepath.md
jrandolf ec201744f0
feat: use configuration files (#9140)
This PR adds configurations files to `puppeteer`'s methods for
configuration. Under the hood, `puppeteer` relies on
https://www.npmjs.com/package/cosmiconfig which resolves several formats
of configuration:

- a `puppeteer` property in package.json
- a `.puppeteerrc` file in JSON or YAML format
- a `.puppeteerrc.json`, `.puppeteerrc.yaml`, `.puppeteerrc.yml`,
`.puppeteerrc.js`, or `.puppeteerrc.cjs` file
- a `puppeteer.config.js` or `puppeteer.config.cjs` CommonJS module
exporting an object

Documentation will be added later.

Fixed: #9128
2022-10-21 15:09:21 +02:00

26 lines
558 B
Markdown

---
sidebar_label: PuppeteerNode.executablePath
---
# PuppeteerNode.executablePath() method
**Signature:**
```typescript
class PuppeteerNode {
executablePath(channel?: ChromeReleaseChannel): string;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ----------------------------------------------------------- | ----------------- |
| channel | [ChromeReleaseChannel](./puppeteer.chromereleasechannel.md) | <i>(Optional)</i> |
**Returns:**
string
The executable path.