ace31d6f58
Without the API-* dependencies pinned different versions may be installed on local machines vs CI. One of the checks we do is to check that the checked in docs matches what is generated on CI. Therefore we need to ensure devs locally run the exact version that CI runs such that they generate the same output. So in this case we pin to a particular version of the dependencies.
60 lines
3.2 KiB
Markdown
60 lines
3.2 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Browser](./puppeteer.browser.md)
|
|
|
|
## Browser class
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export declare class Browser extends EventEmitter
|
|
```
|
|
<b>Extends:</b> [EventEmitter](./puppeteer.eventemitter.md)
|
|
|
|
## Constructors
|
|
|
|
| Constructor | Modifiers | Description |
|
|
| --- | --- | --- |
|
|
| [(constructor)(connection, contextIds, ignoreHTTPSErrors, defaultViewport, process, closeCallback)](./puppeteer.browser._constructor_.md) | | Constructs a new instance of the <code>Browser</code> class |
|
|
|
|
## Properties
|
|
|
|
| Property | Modifiers | Type | Description |
|
|
| --- | --- | --- | --- |
|
|
| [\_closeCallback](./puppeteer.browser._closecallback.md) | | BrowserCloseCallback | |
|
|
| [\_connection](./puppeteer.browser._connection.md) | | [Connection](./puppeteer.connection.md) | |
|
|
| [\_contexts](./puppeteer.browser._contexts.md) | | Map<string, [BrowserContext](./puppeteer.browsercontext.md)<!-- -->> | |
|
|
| [\_defaultContext](./puppeteer.browser._defaultcontext.md) | | [BrowserContext](./puppeteer.browsercontext.md) | |
|
|
| [\_defaultViewport](./puppeteer.browser._defaultviewport.md) | | Viewport | |
|
|
| [\_ignoreHTTPSErrors](./puppeteer.browser._ignorehttpserrors.md) | | boolean | |
|
|
| [\_process](./puppeteer.browser._process.md) | | ChildProcess | |
|
|
| [\_targets](./puppeteer.browser._targets.md) | | Map<string, [Target](./puppeteer.target.md)<!-- -->> | |
|
|
|
|
## Methods
|
|
|
|
| Method | Modifiers | Description |
|
|
| --- | --- | --- |
|
|
| [\_createPageInContext(contextId)](./puppeteer.browser._createpageincontext.md) | | |
|
|
| [\_disposeContext(contextId)](./puppeteer.browser._disposecontext.md) | | |
|
|
| [\_getVersion()](./puppeteer.browser._getversion.md) | | |
|
|
| [\_targetCreated(event)](./puppeteer.browser._targetcreated.md) | | |
|
|
| [\_targetDestroyed(event)](./puppeteer.browser._targetdestroyed.md) | | |
|
|
| [\_targetInfoChanged(event)](./puppeteer.browser._targetinfochanged.md) | | |
|
|
| [browserContexts()](./puppeteer.browser.browsercontexts.md) | | |
|
|
| [close()](./puppeteer.browser.close.md) | | |
|
|
| [create(connection, contextIds, ignoreHTTPSErrors, defaultViewport, process, closeCallback)](./puppeteer.browser.create.md) | <code>static</code> | |
|
|
| [createIncognitoBrowserContext()](./puppeteer.browser.createincognitobrowsercontext.md) | | |
|
|
| [defaultBrowserContext()](./puppeteer.browser.defaultbrowsercontext.md) | | |
|
|
| [disconnect()](./puppeteer.browser.disconnect.md) | | |
|
|
| [isConnected()](./puppeteer.browser.isconnected.md) | | |
|
|
| [newPage()](./puppeteer.browser.newpage.md) | | |
|
|
| [pages()](./puppeteer.browser.pages.md) | | |
|
|
| [process()](./puppeteer.browser.process.md) | | |
|
|
| [target()](./puppeteer.browser.target.md) | | |
|
|
| [targets()](./puppeteer.browser.targets.md) | | |
|
|
| [userAgent()](./puppeteer.browser.useragent.md) | | |
|
|
| [version()](./puppeteer.browser.version.md) | | |
|
|
| [waitForTarget(predicate, options)](./puppeteer.browser.waitfortarget.md) | | |
|
|
| [wsEndpoint()](./puppeteer.browser.wsendpoint.md) | | |
|
|
|