mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
parent
d6a88a9768
commit
b4176029d9
@ -7,5 +7,6 @@ sidebar_label: connect
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
connect: (options: import("./types.js").ConnectOptions) => Promise<import("./types.js").Browser>
|
||||
connect: (options: import('./types.js').ConnectOptions) =>
|
||||
Promise<import('./types.js').Browser>;
|
||||
```
|
||||
|
@ -12,7 +12,7 @@ ElementHandle represents an in-page DOM element.
|
||||
export declare class ElementHandle<ElementType extends Node = Element> extends JSHandle<ElementType>
|
||||
```
|
||||
|
||||
**Extends:** [JSHandle](./puppeteer.jshandle.md)
|
||||
**Extends:** [JSHandle](./puppeteer.jshandle.md)<ElementType>
|
||||
|
||||
## Remarks
|
||||
|
||||
|
@ -16,4 +16,4 @@ class Frame {
|
||||
|
||||
[Frame](./puppeteer.frame.md)\[\]
|
||||
|
||||
an array of child frames.
|
||||
An array of child frames.
|
||||
|
@ -16,4 +16,4 @@ class Frame {
|
||||
|
||||
boolean
|
||||
|
||||
`true` if the frame has been detached, or `false` otherwise.
|
||||
`true` if the frame has been detached. Otherwise, `false`.
|
||||
|
@ -16,4 +16,4 @@ class Frame {
|
||||
|
||||
[Frame](./puppeteer.frame.md) \| null
|
||||
|
||||
the parent `Frame`, if any. Detached and main frames return `null`.
|
||||
The parent frame, if any. Detached and main frames return `null`.
|
||||
|
@ -16,4 +16,4 @@ class Frame {
|
||||
|
||||
string
|
||||
|
||||
the frame's URL.
|
||||
The frame's URL.
|
||||
|
@ -34,9 +34,9 @@ The constructor for this class is marked as internal. Third-party code should no
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| ------------------------------------------- | --------- | ---------- | ----------------------------------------------------------------- |
|
||||
| [client](./puppeteer.httprequest.client.md) | | CDPSession | Warning! Using this client can break Puppeteer. Use with caution. |
|
||||
| Property | Modifiers | Type | Description |
|
||||
| ------------------------------------------- | --------------------- | ---------- | ----------------------------------------------------------------- |
|
||||
| [client](./puppeteer.httprequest.client.md) | <code>readonly</code> | CDPSession | Warning! Using this client can break Puppeteer. Use with caution. |
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -7,5 +7,6 @@ sidebar_label: launch
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
launch: (options?: import("./types.js").PuppeteerLaunchOptions) => Promise<import("./types.js").Browser>
|
||||
launch: (options?: import('./types.js').PuppeteerLaunchOptions) =>
|
||||
Promise<import('./types.js').Browser>;
|
||||
```
|
||||
|
@ -10,9 +10,9 @@ A list of network conditions to be used with `page.emulateNetworkConditions(netw
|
||||
|
||||
```typescript
|
||||
networkConditions: Readonly<{
|
||||
'Slow 3G': NetworkConditions;
|
||||
'Fast 3G': NetworkConditions;
|
||||
}>
|
||||
'Slow 3G': NetworkConditions;
|
||||
'Fast 3G': NetworkConditions;
|
||||
}>;
|
||||
```
|
||||
|
||||
## Example
|
||||
|
@ -63,14 +63,14 @@ page.off('request', logRequest);
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| -------------------------------------------------- | --------- | --------------------------------------------- | ----------- |
|
||||
| [accessibility](./puppeteer.page.accessibility.md) | | [Accessibility](./puppeteer.accessibility.md) | |
|
||||
| [coverage](./puppeteer.page.coverage.md) | | [Coverage](./puppeteer.coverage.md) | |
|
||||
| [keyboard](./puppeteer.page.keyboard.md) | | [Keyboard](./puppeteer.keyboard.md) | |
|
||||
| [mouse](./puppeteer.page.mouse.md) | | [Mouse](./puppeteer.mouse.md) | |
|
||||
| [touchscreen](./puppeteer.page.touchscreen.md) | | [Touchscreen](./puppeteer.touchscreen.md) | |
|
||||
| [tracing](./puppeteer.page.tracing.md) | | [Tracing](./puppeteer.tracing.md) | |
|
||||
| Property | Modifiers | Type | Description |
|
||||
| -------------------------------------------------- | --------------------- | --------------------------------------------- | ----------- |
|
||||
| [accessibility](./puppeteer.page.accessibility.md) | <code>readonly</code> | [Accessibility](./puppeteer.accessibility.md) | |
|
||||
| [coverage](./puppeteer.page.coverage.md) | <code>readonly</code> | [Coverage](./puppeteer.coverage.md) | |
|
||||
| [keyboard](./puppeteer.page.keyboard.md) | <code>readonly</code> | [Keyboard](./puppeteer.keyboard.md) | |
|
||||
| [mouse](./puppeteer.page.mouse.md) | <code>readonly</code> | [Mouse](./puppeteer.mouse.md) | |
|
||||
| [touchscreen](./puppeteer.page.touchscreen.md) | <code>readonly</code> | [Touchscreen](./puppeteer.touchscreen.md) | |
|
||||
| [tracing](./puppeteer.page.tracing.md) | <code>readonly</code> | [Tracing](./puppeteer.tracing.md) | |
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -20,13 +20,13 @@ The constructor for this class is marked as internal. Third-party code should no
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --------------------------------------------------------------- | --------- | ------------------------------------------------------------ | ----------- |
|
||||
| [\_changedProduct](./puppeteer.puppeteer._changedproduct.md) | | boolean | |
|
||||
| [\_isPuppeteerCore](./puppeteer.puppeteer._ispuppeteercore.md) | | boolean | |
|
||||
| [devices](./puppeteer.puppeteer.devices.md) | | typeof devices | |
|
||||
| [errors](./puppeteer.puppeteer.errors.md) | | typeof [errors](./puppeteer.errors.md) | |
|
||||
| [networkConditions](./puppeteer.puppeteer.networkconditions.md) | | typeof [networkConditions](./puppeteer.networkconditions.md) | |
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --------------------------------------------------------------- | ---------------------- | ------------------------------------------------------------ | ----------- |
|
||||
| [\_changedProduct](./puppeteer.puppeteer._changedproduct.md) | <code>protected</code> | boolean | |
|
||||
| [\_isPuppeteerCore](./puppeteer.puppeteer._ispuppeteercore.md) | <code>protected</code> | boolean | |
|
||||
| [devices](./puppeteer.puppeteer.devices.md) | <code>readonly</code> | typeof devices | |
|
||||
| [errors](./puppeteer.puppeteer.errors.md) | <code>readonly</code> | typeof [errors](./puppeteer.errors.md) | |
|
||||
| [networkConditions](./puppeteer.puppeteer.networkconditions.md) | <code>readonly</code> | typeof [networkConditions](./puppeteer.networkconditions.md) | |
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -44,10 +44,10 @@ Once you have created a `page` you have access to a large API to interact with t
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| ---------------------------------------------------------------------- | --------- | ------ | ---------------------------------------------------------------------------------------------------------------------- |
|
||||
| [\_preferredRevision](./puppeteer.puppeteernode._preferredrevision.md) | | string | |
|
||||
| [product](./puppeteer.puppeteernode.product.md) | | string | The name of the browser that is under automation (<code>"chrome"</code> or <code>"firefox"</code>) |
|
||||
| Property | Modifiers | Type | Description |
|
||||
| ---------------------------------------------------------------------- | --------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------- |
|
||||
| [\_preferredRevision](./puppeteer.puppeteernode._preferredrevision.md) | | string | |
|
||||
| [product](./puppeteer.puppeteernode.product.md) | <code>readonly</code> | string | The name of the browser that is under automation (<code>"chrome"</code> or <code>"firefox"</code>) |
|
||||
|
||||
## Methods
|
||||
|
||||
|
3090
package-lock.json
generated
3090
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
38
package.json
38
package.json
@ -82,43 +82,43 @@
|
||||
"ws": "8.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "17.0.1",
|
||||
"@commitlint/config-conventional": "17.0.2",
|
||||
"@microsoft/api-documenter": "7.18.0",
|
||||
"@microsoft/api-extractor": "7.24.2",
|
||||
"@microsoft/api-extractor-model": "7.21.0",
|
||||
"@commitlint/cli": "17.0.3",
|
||||
"@commitlint/config-conventional": "17.0.3",
|
||||
"@microsoft/api-documenter": "7.19.4",
|
||||
"@microsoft/api-extractor": "7.29.2",
|
||||
"@microsoft/api-extractor-model": "7.23.0",
|
||||
"@types/debug": "4.1.7",
|
||||
"@types/diff": "5.0.2",
|
||||
"@types/mime": "2.0.3",
|
||||
"@types/mime": "3.0.1",
|
||||
"@types/mocha": "9.1.1",
|
||||
"@types/node": "17.0.38",
|
||||
"@types/node": "18.7.1",
|
||||
"@types/pixelmatch": "5.2.4",
|
||||
"@types/pngjs": "6.0.1",
|
||||
"@types/progress": "2.0.5",
|
||||
"@types/proxy-from-env": "1.0.1",
|
||||
"@types/rimraf": "3.0.2",
|
||||
"@types/semver": "7.3.10",
|
||||
"@types/sinon": "10.0.11",
|
||||
"@types/semver": "7.3.11",
|
||||
"@types/sinon": "10.0.13",
|
||||
"@types/tar-fs": "2.0.1",
|
||||
"@types/unbzip2-stream": "1.4.0",
|
||||
"@types/ws": "8.5.3",
|
||||
"@typescript-eslint/eslint-plugin": "5.27.0",
|
||||
"@typescript-eslint/parser": "5.27.0",
|
||||
"c8": "7.11.3",
|
||||
"@typescript-eslint/eslint-plugin": "5.33.0",
|
||||
"@typescript-eslint/parser": "5.33.0",
|
||||
"c8": "7.12.0",
|
||||
"commonmark": "0.30.0",
|
||||
"cross-env": "7.0.3",
|
||||
"diff": "5.1.0",
|
||||
"eslint": "8.16.0",
|
||||
"eslint": "8.21.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-formatter-codeframe": "7.32.1",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint-plugin-mocha": "10.0.5",
|
||||
"eslint-plugin-prettier": "4.0.0",
|
||||
"eslint-plugin-mocha": "10.1.0",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-tsdoc": "0.2.16",
|
||||
"eslint-plugin-unused-imports": "2.0.0",
|
||||
"esprima": "4.0.1",
|
||||
"expect": "25.2.7",
|
||||
"gts": "3.1.0",
|
||||
"gts": "4.0.0",
|
||||
"husky": "8.0.1",
|
||||
"jpeg-js": "0.4.4",
|
||||
"mime": "3.0.0",
|
||||
@ -128,12 +128,12 @@
|
||||
"npm-run-all": "4.1.5",
|
||||
"pixelmatch": "5.3.0",
|
||||
"pngjs": "6.0.0",
|
||||
"prettier": "2.6.2",
|
||||
"prettier": "2.7.1",
|
||||
"semver": "7.3.7",
|
||||
"sinon": "14.0.0",
|
||||
"source-map-support": "0.5.21",
|
||||
"text-diff": "1.0.1",
|
||||
"tsd": "0.21.0",
|
||||
"typescript": "4.7.2"
|
||||
"tsd": "0.22.0",
|
||||
"typescript": "4.7.4"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user