forked from puppeteer/puppeteer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(main): release 15.4.0 (puppeteer#8668)
* chore(main): release 15.4.0 * chore: generate versioned docs Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
- Loading branch information
1 parent
edcdf21
commit f0c2808
Showing
722 changed files
with
18,459 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "15.3.2" | ||
".": "15.4.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** | ||
* @internal | ||
*/ | ||
export const packageVersion = '15.3.2'; | ||
export const packageVersion = '15.4.0'; |
Large diffs are not rendered by default.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
website/versioned_docs/version-15.4.0/api/puppeteer.accessibility.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
sidebar_label: Accessibility | ||
--- | ||
|
||
# Accessibility class | ||
|
||
The Accessibility class provides methods for inspecting Chromium's accessibility tree. The accessibility tree is used by assistive technology such as [screen readers](https://en.wikipedia.org/wiki/Screen_reader) or [switches](https://en.wikipedia.org/wiki/Switch_access). | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export declare class Accessibility | ||
``` | ||
|
||
## Remarks | ||
|
||
Accessibility is a very platform-specific thing. On different platforms, there are different screen readers that might have wildly different output. | ||
|
||
Blink - Chrome's rendering engine - has a concept of "accessibility tree", which is then translated into different platform-specific APIs. Accessibility namespace gives users access to the Blink Accessibility Tree. | ||
|
||
Most of the accessibility tree gets filtered out when converting from Blink AX Tree to Platform-specific AX-Tree or by assistive technologies themselves. By default, Puppeteer tries to approximate this filtering, exposing only the "interesting" nodes of the tree. | ||
|
||
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `Accessibility` class. | ||
|
||
## Methods | ||
|
||
| Method | Modifiers | Description | | ||
| ---------------------------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------- | | ||
| [snapshot(options)](./puppeteer.accessibility.snapshot.md) | | Captures the current state of the accessibility tree. The returned object represents the root accessible node of the page. | |
59 changes: 59 additions & 0 deletions
59
website/versioned_docs/version-15.4.0/api/puppeteer.accessibility.snapshot.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
sidebar_label: Accessibility.snapshot | ||
--- | ||
|
||
# Accessibility.snapshot() method | ||
|
||
Captures the current state of the accessibility tree. The returned object represents the root accessible node of the page. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
class Accessibility { | ||
snapshot(options?: SnapshotOptions): Promise<SerializedAXNode | null>; | ||
} | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ------------------------------------------------- | ----------------- | | ||
| options | [SnapshotOptions](./puppeteer.snapshotoptions.md) | <i>(Optional)</i> | | ||
|
||
**Returns:** | ||
|
||
Promise<[SerializedAXNode](./puppeteer.serializedaxnode.md) \| null> | ||
|
||
An AXNode object representing the snapshot. | ||
|
||
## Remarks | ||
|
||
\*\*NOTE\*\* The Chromium accessibility tree contains nodes that go unused on most platforms and by most screen readers. Puppeteer will discard them as well for an easier to process tree, unless `interestingOnly` is set to `false`. | ||
|
||
## Example 1 | ||
|
||
An example of dumping the entire accessibility tree: | ||
|
||
```ts | ||
const snapshot = await page.accessibility.snapshot(); | ||
console.log(snapshot); | ||
``` | ||
|
||
## Example 2 | ||
|
||
An example of logging the focused node's name: | ||
|
||
```ts | ||
const snapshot = await page.accessibility.snapshot(); | ||
const node = findFocusedNode(snapshot); | ||
console.log(node && node.name); | ||
|
||
function findFocusedNode(node) { | ||
if (node.focused) return node; | ||
for (const child of node.children || []) { | ||
const foundNode = findFocusedNode(child); | ||
return foundNode; | ||
} | ||
return null; | ||
} | ||
``` |
11 changes: 11 additions & 0 deletions
11
website/versioned_docs/version-15.4.0/api/puppeteer.actionresult.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
sidebar_label: ActionResult | ||
--- | ||
|
||
# ActionResult type | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export declare type ActionResult = 'continue' | 'abort' | 'respond'; | ||
``` |
11 changes: 11 additions & 0 deletions
11
website/versioned_docs/version-15.4.0/api/puppeteer.awaitable.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
sidebar_label: Awaitable | ||
--- | ||
|
||
# Awaitable type | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export declare type Awaitable<T> = T | PromiseLike<T>; | ||
``` |
15 changes: 15 additions & 0 deletions
15
website/versioned_docs/version-15.4.0/api/puppeteer.boundingbox.height.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
sidebar_label: BoundingBox.height | ||
--- | ||
|
||
# BoundingBox.height property | ||
|
||
the height of the element in pixels. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
interface BoundingBox { | ||
height: number; | ||
} | ||
``` |
20 changes: 20 additions & 0 deletions
20
website/versioned_docs/version-15.4.0/api/puppeteer.boundingbox.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
sidebar_label: BoundingBox | ||
--- | ||
|
||
# BoundingBox interface | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export interface BoundingBox extends Point | ||
``` | ||
**Extends:** [Point](./puppeteer.point.md) | ||
## Properties | ||
| Property | Modifiers | Type | Description | | ||
| ------------------------------------------- | --------- | ------ | ------------------------------------ | | ||
| [height](./puppeteer.boundingbox.height.md) | | number | the height of the element in pixels. | | ||
| [width](./puppeteer.boundingbox.width.md) | | number | the width of the element in pixels. | |
15 changes: 15 additions & 0 deletions
15
website/versioned_docs/version-15.4.0/api/puppeteer.boundingbox.width.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
sidebar_label: BoundingBox.width | ||
--- | ||
|
||
# BoundingBox.width property | ||
|
||
the width of the element in pixels. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
interface BoundingBox { | ||
width: number; | ||
} | ||
``` |
13 changes: 13 additions & 0 deletions
13
website/versioned_docs/version-15.4.0/api/puppeteer.boxmodel.border.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_label: BoxModel.border | ||
--- | ||
|
||
# BoxModel.border property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
interface BoxModel { | ||
border: Point[]; | ||
} | ||
``` |
13 changes: 13 additions & 0 deletions
13
website/versioned_docs/version-15.4.0/api/puppeteer.boxmodel.content.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_label: BoxModel.content | ||
--- | ||
|
||
# BoxModel.content property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
interface BoxModel { | ||
content: Point[]; | ||
} | ||
``` |
13 changes: 13 additions & 0 deletions
13
website/versioned_docs/version-15.4.0/api/puppeteer.boxmodel.height.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_label: BoxModel.height | ||
--- | ||
|
||
# BoxModel.height property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
interface BoxModel { | ||
height: number; | ||
} | ||
``` |
13 changes: 13 additions & 0 deletions
13
website/versioned_docs/version-15.4.0/api/puppeteer.boxmodel.margin.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_label: BoxModel.margin | ||
--- | ||
|
||
# BoxModel.margin property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
interface BoxModel { | ||
margin: Point[]; | ||
} | ||
``` |
22 changes: 22 additions & 0 deletions
22
website/versioned_docs/version-15.4.0/api/puppeteer.boxmodel.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
sidebar_label: BoxModel | ||
--- | ||
|
||
# BoxModel interface | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export interface BoxModel | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Modifiers | Type | Description | | ||
| ------------------------------------------ | --------- | --------------------------------- | ----------- | | ||
| [border](./puppeteer.boxmodel.border.md) | | [Point](./puppeteer.point.md)\[\] | | | ||
| [content](./puppeteer.boxmodel.content.md) | | [Point](./puppeteer.point.md)\[\] | | | ||
| [height](./puppeteer.boxmodel.height.md) | | number | | | ||
| [margin](./puppeteer.boxmodel.margin.md) | | [Point](./puppeteer.point.md)\[\] | | | ||
| [padding](./puppeteer.boxmodel.padding.md) | | [Point](./puppeteer.point.md)\[\] | | | ||
| [width](./puppeteer.boxmodel.width.md) | | number | | |
13 changes: 13 additions & 0 deletions
13
website/versioned_docs/version-15.4.0/api/puppeteer.boxmodel.padding.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_label: BoxModel.padding | ||
--- | ||
|
||
# BoxModel.padding property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
interface BoxModel { | ||
padding: Point[]; | ||
} | ||
``` |
13 changes: 13 additions & 0 deletions
13
website/versioned_docs/version-15.4.0/api/puppeteer.boxmodel.width.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
sidebar_label: BoxModel.width | ||
--- | ||
|
||
# BoxModel.width property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
interface BoxModel { | ||
width: number; | ||
} | ||
``` |
19 changes: 19 additions & 0 deletions
19
website/versioned_docs/version-15.4.0/api/puppeteer.browser.browsercontexts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
sidebar_label: Browser.browserContexts | ||
--- | ||
|
||
# Browser.browserContexts() method | ||
|
||
Returns an array of all open browser contexts. In a newly created browser, this will return a single instance of [BrowserContext](./puppeteer.browsercontext.md). | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
class Browser { | ||
browserContexts(): BrowserContext[]; | ||
} | ||
``` | ||
|
||
**Returns:** | ||
|
||
[BrowserContext](./puppeteer.browsercontext.md)\[\] |
19 changes: 19 additions & 0 deletions
19
website/versioned_docs/version-15.4.0/api/puppeteer.browser.close.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
sidebar_label: Browser.close | ||
--- | ||
|
||
# Browser.close() method | ||
|
||
Closes Chromium and all of its pages (if any were opened). The [Browser](./puppeteer.browser.md) object itself is considered to be disposed and cannot be used anymore. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
class Browser { | ||
close(): Promise<void>; | ||
} | ||
``` | ||
|
||
**Returns:** | ||
|
||
Promise<void> |
Oops, something went wrong.