| api.ts |
|
694 |
- |
| BluetoothEmulation.ts |
@public
Emulated bluetooth adapter state.
|
2982 |
- |
| Browser.ts |
@public
|
17065 |
- |
| BrowserContext.ts |
@public
|
10288 |
- |
| CDPSession.ts |
@public
|
3580 |
- |
| DeviceRequestPrompt.ts |
Device in a request prompt.
@public
|
1485 |
- |
| Dialog.ts |
Dialog instances are dispatched by the {@link Page} via the `dialog` event.
@remarks
@example
```ts
import puppeteer from 'puppeteer';
const browser = await puppeteer.launch();
const page = await browser.newPage();
page.on('dialog', async dialog => {
console.log(dialog.message());
await dialog.dismiss();
await browser.close();
});
await page.evaluate(() => alert('1'));
```
@public
|
2283 |
- |
| ElementHandle.ts |
@public
|
49218 |
- |
| ElementHandleSymbol.ts |
@internal
|
171 |
- |
| Environment.ts |
@internal
|
283 |
- |
| Frame.ts |
@public
|
36737 |
- |
| HTTPRequest.test.ts |
|
2196 |
- |
| HTTPRequest.ts |
@public
|
20092 |
- |
| HTTPResponse.ts |
@public
|
3296 |
- |
| Input.ts |
@public
|
15661 |
- |
| JSHandle.ts |
Represents a reference to a JavaScript object. Instances can be created using
{@link Page.evaluateHandle}.
Handles prevent the referenced JavaScript object from being garbage-collected
unless the handle is purposely {@link JSHandle.dispose | disposed}. JSHandles
are auto-disposed when their associated frame is navigated away or the parent
context gets destroyed.
Handles can be used as arguments for any evaluation function such as
{@link Page.$eval}, {@link Page.evaluate}, and {@link Page.evaluateHandle}.
They are resolved to their referenced object.
@example
```ts
const windowHandle = await page.evaluateHandle(() => window);
```
@public
|
5729 |
- |
| locators |
|
|
- |
| Page.test.ts |
|
2635 |
- |
| Page.ts |
@public
|
101138 |
- |
| Realm.ts |
@internal
|
2825 |
- |
| Target.ts |
@public
|
2242 |
- |
| WebWorker.ts |
This class represents a
{@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API | WebWorker}.
@remarks
The events `workercreated` and `workerdestroyed` are emitted on the page
object to signal the worker lifecycle.
@example
```ts
page.on('workercreated', worker =>
console.log('Worker created: ' + worker.url()),
);
page.on('workerdestroyed', worker =>
console.log('Worker destroyed: ' + worker.url()),
);
console.log('Current workers:');
for (const worker of page.workers()) {
console.log(' ' + worker.url());
}
```
@public
|
4158 |
- |