mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
parent
7971bb0335
commit
b6bd7c0d6a
@ -1,6 +1,6 @@
|
|||||||
# 🎭 Playwright
|
# 🎭 Playwright
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/playwright) [](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[](https://webkit.org/)<!-- GEN:stop -->
|
[](https://www.npmjs.com/package/playwright) [](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[](https://webkit.org/)<!-- GEN:stop -->
|
||||||
|
|
||||||
## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)
|
## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/
|
|||||||
|
|
||||||
| | Linux | macOS | Windows |
|
| | Linux | macOS | Windows |
|
||||||
| :--- | :---: | :---: | :---: |
|
| :--- | :---: | :---: | :---: |
|
||||||
| Chromium <!-- GEN:chromium-version -->90.0.4399.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| Chromium <!-- GEN:chromium-version -->90.0.4412.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||||
| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||||
| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"browsers": [
|
"browsers": [
|
||||||
{
|
{
|
||||||
"name": "chromium",
|
"name": "chromium",
|
||||||
"revision": "846621",
|
"revision": "851527",
|
||||||
"download": true
|
"download": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -788,6 +788,7 @@ some CSP errors in the future.
|
|||||||
}
|
}
|
||||||
export type ContentSecurityPolicyViolationType = "kInlineViolation"|"kEvalViolation"|"kURLViolation"|"kTrustedTypesSinkViolation"|"kTrustedTypesPolicyViolation";
|
export type ContentSecurityPolicyViolationType = "kInlineViolation"|"kEvalViolation"|"kURLViolation"|"kTrustedTypesSinkViolation"|"kTrustedTypesPolicyViolation";
|
||||||
export interface SourceCodeLocation {
|
export interface SourceCodeLocation {
|
||||||
|
scriptId?: Runtime.ScriptId;
|
||||||
url: string;
|
url: string;
|
||||||
lineNumber: number;
|
lineNumber: number;
|
||||||
columnNumber: number;
|
columnNumber: number;
|
||||||
@ -807,14 +808,16 @@ some CSP errors in the future.
|
|||||||
sourceCodeLocation?: SourceCodeLocation;
|
sourceCodeLocation?: SourceCodeLocation;
|
||||||
violatingNodeId?: DOM.BackendNodeId;
|
violatingNodeId?: DOM.BackendNodeId;
|
||||||
}
|
}
|
||||||
|
export type SharedArrayBufferIssueType = "TransferIssue"|"CreationIssue";
|
||||||
/**
|
/**
|
||||||
* Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
|
* Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
|
||||||
code. Currently only used for COEP/COOP, but may be extended to include
|
code. Currently only used for COEP/COOP, but may be extended to include
|
||||||
some CSP errors in the future.
|
some CSP errors in the future.
|
||||||
*/
|
*/
|
||||||
export interface SharedArrayBufferTransferIssueDetails {
|
export interface SharedArrayBufferIssueDetails {
|
||||||
sourceCodeLocation: SourceCodeLocation;
|
sourceCodeLocation: SourceCodeLocation;
|
||||||
isWarning: boolean;
|
isWarning: boolean;
|
||||||
|
type: SharedArrayBufferIssueType;
|
||||||
}
|
}
|
||||||
export type TwaQualityEnforcementViolationType = "kHttpError"|"kUnavailableOffline"|"kDigitalAssetLinks";
|
export type TwaQualityEnforcementViolationType = "kHttpError"|"kUnavailableOffline"|"kDigitalAssetLinks";
|
||||||
export interface TrustedWebActivityIssueDetails {
|
export interface TrustedWebActivityIssueDetails {
|
||||||
@ -835,12 +838,21 @@ used when violation type is kDigitalAssetLinks.
|
|||||||
*/
|
*/
|
||||||
signature?: string;
|
signature?: string;
|
||||||
}
|
}
|
||||||
|
export interface LowTextContrastIssueDetails {
|
||||||
|
violatingNodeId: DOM.BackendNodeId;
|
||||||
|
violatingNodeSelector: string;
|
||||||
|
contrastRatio: number;
|
||||||
|
thresholdAA: number;
|
||||||
|
thresholdAAA: number;
|
||||||
|
fontSize: string;
|
||||||
|
fontWeight: string;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* A unique identifier for the type of issue. Each type may use one of the
|
* A unique identifier for the type of issue. Each type may use one of the
|
||||||
optional fields in InspectorIssueDetails to convey more specific
|
optional fields in InspectorIssueDetails to convey more specific
|
||||||
information about the kind of issue.
|
information about the kind of issue.
|
||||||
*/
|
*/
|
||||||
export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferTransferIssue"|"TrustedWebActivityIssue";
|
export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferIssue"|"TrustedWebActivityIssue"|"LowTextContrastIssue";
|
||||||
/**
|
/**
|
||||||
* This struct holds a list of optional fields with additional information
|
* This struct holds a list of optional fields with additional information
|
||||||
specific to the kind of issue. When adding a new issue code, please also
|
specific to the kind of issue. When adding a new issue code, please also
|
||||||
@ -852,8 +864,9 @@ add a new optional field to this type.
|
|||||||
blockedByResponseIssueDetails?: BlockedByResponseIssueDetails;
|
blockedByResponseIssueDetails?: BlockedByResponseIssueDetails;
|
||||||
heavyAdIssueDetails?: HeavyAdIssueDetails;
|
heavyAdIssueDetails?: HeavyAdIssueDetails;
|
||||||
contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
|
contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
|
||||||
sharedArrayBufferTransferIssueDetails?: SharedArrayBufferTransferIssueDetails;
|
sharedArrayBufferIssueDetails?: SharedArrayBufferIssueDetails;
|
||||||
twaQualityEnforcementDetails?: TrustedWebActivityIssueDetails;
|
twaQualityEnforcementDetails?: TrustedWebActivityIssueDetails;
|
||||||
|
lowTextContrastIssueDetails?: LowTextContrastIssueDetails;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* An inspector issue reported from the back-end.
|
* An inspector issue reported from the back-end.
|
||||||
@ -918,6 +931,14 @@ applies to images.
|
|||||||
}
|
}
|
||||||
export type enableReturnValue = {
|
export type enableReturnValue = {
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Runs the contrast check for the target page. Found issues are reported
|
||||||
|
using Audits.issueAdded event.
|
||||||
|
*/
|
||||||
|
export type checkContrastParameters = {
|
||||||
|
}
|
||||||
|
export type checkContrastReturnValue = {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4742,10 +4763,11 @@ resource fetches.
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints
|
* Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints
|
||||||
|
Missing optional values will be filled in by the target with what it would normally use.
|
||||||
*/
|
*/
|
||||||
export interface UserAgentMetadata {
|
export interface UserAgentMetadata {
|
||||||
brands: UserAgentBrandVersion[];
|
brands?: UserAgentBrandVersion[];
|
||||||
fullVersion: string;
|
fullVersion?: string;
|
||||||
platform: string;
|
platform: string;
|
||||||
platformVersion: string;
|
platformVersion: string;
|
||||||
architecture: string;
|
architecture: string;
|
||||||
@ -7205,11 +7227,11 @@ module) (0-based).
|
|||||||
/**
|
/**
|
||||||
* Types of reasons why a cookie may not be stored from a response.
|
* Types of reasons why a cookie may not be stored from a response.
|
||||||
*/
|
*/
|
||||||
export type SetCookieBlockedReason = "SecureOnly"|"SameSiteStrict"|"SameSiteLax"|"SameSiteUnspecifiedTreatedAsLax"|"SameSiteNoneInsecure"|"UserPreferences"|"SyntaxError"|"SchemeNotSupported"|"OverwriteSecure"|"InvalidDomain"|"InvalidPrefix"|"UnknownError"|"SchemefulSameSiteStrict"|"SchemefulSameSiteLax"|"SchemefulSameSiteUnspecifiedTreatedAsLax";
|
export type SetCookieBlockedReason = "SecureOnly"|"SameSiteStrict"|"SameSiteLax"|"SameSiteUnspecifiedTreatedAsLax"|"SameSiteNoneInsecure"|"UserPreferences"|"SyntaxError"|"SchemeNotSupported"|"OverwriteSecure"|"InvalidDomain"|"InvalidPrefix"|"UnknownError"|"SchemefulSameSiteStrict"|"SchemefulSameSiteLax"|"SchemefulSameSiteUnspecifiedTreatedAsLax"|"SamePartyFromCrossPartyContext"|"SamePartyConflictsWithOtherAttributes";
|
||||||
/**
|
/**
|
||||||
* Types of reasons why a cookie may not be sent with a request.
|
* Types of reasons why a cookie may not be sent with a request.
|
||||||
*/
|
*/
|
||||||
export type CookieBlockedReason = "SecureOnly"|"NotOnPath"|"DomainMismatch"|"SameSiteStrict"|"SameSiteLax"|"SameSiteUnspecifiedTreatedAsLax"|"SameSiteNoneInsecure"|"UserPreferences"|"UnknownError"|"SchemefulSameSiteStrict"|"SchemefulSameSiteLax"|"SchemefulSameSiteUnspecifiedTreatedAsLax";
|
export type CookieBlockedReason = "SecureOnly"|"NotOnPath"|"DomainMismatch"|"SameSiteStrict"|"SameSiteLax"|"SameSiteUnspecifiedTreatedAsLax"|"SameSiteNoneInsecure"|"UserPreferences"|"UnknownError"|"SchemefulSameSiteStrict"|"SchemefulSameSiteLax"|"SchemefulSameSiteUnspecifiedTreatedAsLax"|"SamePartyFromCrossPartyContext";
|
||||||
/**
|
/**
|
||||||
* A cookie which was not stored from a response with the corresponding reason.
|
* A cookie which was not stored from a response with the corresponding reason.
|
||||||
*/
|
*/
|
||||||
@ -8007,6 +8029,11 @@ are represented by the invalid cookie line string instead of a proper cookie.
|
|||||||
* Raw response headers as they were received over the wire.
|
* Raw response headers as they were received over the wire.
|
||||||
*/
|
*/
|
||||||
headers: Headers;
|
headers: Headers;
|
||||||
|
/**
|
||||||
|
* The IP address space of the resource. The address space can only be determined once the transport
|
||||||
|
established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
|
||||||
|
*/
|
||||||
|
resourceIPAddressSpace: IPAddressSpace;
|
||||||
/**
|
/**
|
||||||
* Raw response header text as it was received over the wire. The raw text may not always be
|
* Raw response header text as it was received over the wire. The raw text may not always be
|
||||||
available, such as in the case of HTTP/2 or QUIC.
|
available, such as in the case of HTTP/2 or QUIC.
|
||||||
@ -8702,6 +8729,23 @@ continueInterceptedRequest call.
|
|||||||
*/
|
*/
|
||||||
crossAlignment?: LineStyle;
|
crossAlignment?: LineStyle;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Configuration data for the highlighting of Flex item elements.
|
||||||
|
*/
|
||||||
|
export interface FlexItemHighlightConfig {
|
||||||
|
/**
|
||||||
|
* Style of the box representing the item's base size
|
||||||
|
*/
|
||||||
|
baseSizeBox?: BoxStyle;
|
||||||
|
/**
|
||||||
|
* Style of the border around the box representing the item's base size
|
||||||
|
*/
|
||||||
|
baseSizeBorder?: LineStyle;
|
||||||
|
/**
|
||||||
|
* Style of the arrow representing if the item grew or shrank
|
||||||
|
*/
|
||||||
|
flexibilityArrow?: LineStyle;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Style information for drawing a line.
|
* Style information for drawing a line.
|
||||||
*/
|
*/
|
||||||
@ -8797,6 +8841,10 @@ continueInterceptedRequest call.
|
|||||||
* The flex container highlight configuration (default: all transparent).
|
* The flex container highlight configuration (default: all transparent).
|
||||||
*/
|
*/
|
||||||
flexContainerHighlightConfig?: FlexContainerHighlightConfig;
|
flexContainerHighlightConfig?: FlexContainerHighlightConfig;
|
||||||
|
/**
|
||||||
|
* The flex item highlight configuration (default: all transparent).
|
||||||
|
*/
|
||||||
|
flexItemHighlightConfig?: FlexItemHighlightConfig;
|
||||||
/**
|
/**
|
||||||
* The contrast algorithm to use for the contrast ratio (default: aa).
|
* The contrast algorithm to use for the contrast ratio (default: aa).
|
||||||
*/
|
*/
|
||||||
@ -16022,6 +16070,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
|||||||
"Audits.getEncodedResponse": Audits.getEncodedResponseParameters;
|
"Audits.getEncodedResponse": Audits.getEncodedResponseParameters;
|
||||||
"Audits.disable": Audits.disableParameters;
|
"Audits.disable": Audits.disableParameters;
|
||||||
"Audits.enable": Audits.enableParameters;
|
"Audits.enable": Audits.enableParameters;
|
||||||
|
"Audits.checkContrast": Audits.checkContrastParameters;
|
||||||
"BackgroundService.startObserving": BackgroundService.startObservingParameters;
|
"BackgroundService.startObserving": BackgroundService.startObservingParameters;
|
||||||
"BackgroundService.stopObserving": BackgroundService.stopObservingParameters;
|
"BackgroundService.stopObserving": BackgroundService.stopObservingParameters;
|
||||||
"BackgroundService.setRecording": BackgroundService.setRecordingParameters;
|
"BackgroundService.setRecording": BackgroundService.setRecordingParameters;
|
||||||
@ -16529,6 +16578,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
|||||||
"Audits.getEncodedResponse": Audits.getEncodedResponseReturnValue;
|
"Audits.getEncodedResponse": Audits.getEncodedResponseReturnValue;
|
||||||
"Audits.disable": Audits.disableReturnValue;
|
"Audits.disable": Audits.disableReturnValue;
|
||||||
"Audits.enable": Audits.enableReturnValue;
|
"Audits.enable": Audits.enableReturnValue;
|
||||||
|
"Audits.checkContrast": Audits.checkContrastReturnValue;
|
||||||
"BackgroundService.startObserving": BackgroundService.startObservingReturnValue;
|
"BackgroundService.startObserving": BackgroundService.startObservingReturnValue;
|
||||||
"BackgroundService.stopObserving": BackgroundService.stopObservingReturnValue;
|
"BackgroundService.stopObserving": BackgroundService.stopObservingReturnValue;
|
||||||
"BackgroundService.setRecording": BackgroundService.setRecordingReturnValue;
|
"BackgroundService.setRecording": BackgroundService.setRecordingReturnValue;
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.5 KiB |
64
types/protocol.d.ts
vendored
64
types/protocol.d.ts
vendored
@ -788,6 +788,7 @@ some CSP errors in the future.
|
|||||||
}
|
}
|
||||||
export type ContentSecurityPolicyViolationType = "kInlineViolation"|"kEvalViolation"|"kURLViolation"|"kTrustedTypesSinkViolation"|"kTrustedTypesPolicyViolation";
|
export type ContentSecurityPolicyViolationType = "kInlineViolation"|"kEvalViolation"|"kURLViolation"|"kTrustedTypesSinkViolation"|"kTrustedTypesPolicyViolation";
|
||||||
export interface SourceCodeLocation {
|
export interface SourceCodeLocation {
|
||||||
|
scriptId?: Runtime.ScriptId;
|
||||||
url: string;
|
url: string;
|
||||||
lineNumber: number;
|
lineNumber: number;
|
||||||
columnNumber: number;
|
columnNumber: number;
|
||||||
@ -807,14 +808,16 @@ some CSP errors in the future.
|
|||||||
sourceCodeLocation?: SourceCodeLocation;
|
sourceCodeLocation?: SourceCodeLocation;
|
||||||
violatingNodeId?: DOM.BackendNodeId;
|
violatingNodeId?: DOM.BackendNodeId;
|
||||||
}
|
}
|
||||||
|
export type SharedArrayBufferIssueType = "TransferIssue"|"CreationIssue";
|
||||||
/**
|
/**
|
||||||
* Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
|
* Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
|
||||||
code. Currently only used for COEP/COOP, but may be extended to include
|
code. Currently only used for COEP/COOP, but may be extended to include
|
||||||
some CSP errors in the future.
|
some CSP errors in the future.
|
||||||
*/
|
*/
|
||||||
export interface SharedArrayBufferTransferIssueDetails {
|
export interface SharedArrayBufferIssueDetails {
|
||||||
sourceCodeLocation: SourceCodeLocation;
|
sourceCodeLocation: SourceCodeLocation;
|
||||||
isWarning: boolean;
|
isWarning: boolean;
|
||||||
|
type: SharedArrayBufferIssueType;
|
||||||
}
|
}
|
||||||
export type TwaQualityEnforcementViolationType = "kHttpError"|"kUnavailableOffline"|"kDigitalAssetLinks";
|
export type TwaQualityEnforcementViolationType = "kHttpError"|"kUnavailableOffline"|"kDigitalAssetLinks";
|
||||||
export interface TrustedWebActivityIssueDetails {
|
export interface TrustedWebActivityIssueDetails {
|
||||||
@ -835,12 +838,21 @@ used when violation type is kDigitalAssetLinks.
|
|||||||
*/
|
*/
|
||||||
signature?: string;
|
signature?: string;
|
||||||
}
|
}
|
||||||
|
export interface LowTextContrastIssueDetails {
|
||||||
|
violatingNodeId: DOM.BackendNodeId;
|
||||||
|
violatingNodeSelector: string;
|
||||||
|
contrastRatio: number;
|
||||||
|
thresholdAA: number;
|
||||||
|
thresholdAAA: number;
|
||||||
|
fontSize: string;
|
||||||
|
fontWeight: string;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* A unique identifier for the type of issue. Each type may use one of the
|
* A unique identifier for the type of issue. Each type may use one of the
|
||||||
optional fields in InspectorIssueDetails to convey more specific
|
optional fields in InspectorIssueDetails to convey more specific
|
||||||
information about the kind of issue.
|
information about the kind of issue.
|
||||||
*/
|
*/
|
||||||
export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferTransferIssue"|"TrustedWebActivityIssue";
|
export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferIssue"|"TrustedWebActivityIssue"|"LowTextContrastIssue";
|
||||||
/**
|
/**
|
||||||
* This struct holds a list of optional fields with additional information
|
* This struct holds a list of optional fields with additional information
|
||||||
specific to the kind of issue. When adding a new issue code, please also
|
specific to the kind of issue. When adding a new issue code, please also
|
||||||
@ -852,8 +864,9 @@ add a new optional field to this type.
|
|||||||
blockedByResponseIssueDetails?: BlockedByResponseIssueDetails;
|
blockedByResponseIssueDetails?: BlockedByResponseIssueDetails;
|
||||||
heavyAdIssueDetails?: HeavyAdIssueDetails;
|
heavyAdIssueDetails?: HeavyAdIssueDetails;
|
||||||
contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
|
contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
|
||||||
sharedArrayBufferTransferIssueDetails?: SharedArrayBufferTransferIssueDetails;
|
sharedArrayBufferIssueDetails?: SharedArrayBufferIssueDetails;
|
||||||
twaQualityEnforcementDetails?: TrustedWebActivityIssueDetails;
|
twaQualityEnforcementDetails?: TrustedWebActivityIssueDetails;
|
||||||
|
lowTextContrastIssueDetails?: LowTextContrastIssueDetails;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* An inspector issue reported from the back-end.
|
* An inspector issue reported from the back-end.
|
||||||
@ -918,6 +931,14 @@ applies to images.
|
|||||||
}
|
}
|
||||||
export type enableReturnValue = {
|
export type enableReturnValue = {
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Runs the contrast check for the target page. Found issues are reported
|
||||||
|
using Audits.issueAdded event.
|
||||||
|
*/
|
||||||
|
export type checkContrastParameters = {
|
||||||
|
}
|
||||||
|
export type checkContrastReturnValue = {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4742,10 +4763,11 @@ resource fetches.
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints
|
* Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints
|
||||||
|
Missing optional values will be filled in by the target with what it would normally use.
|
||||||
*/
|
*/
|
||||||
export interface UserAgentMetadata {
|
export interface UserAgentMetadata {
|
||||||
brands: UserAgentBrandVersion[];
|
brands?: UserAgentBrandVersion[];
|
||||||
fullVersion: string;
|
fullVersion?: string;
|
||||||
platform: string;
|
platform: string;
|
||||||
platformVersion: string;
|
platformVersion: string;
|
||||||
architecture: string;
|
architecture: string;
|
||||||
@ -7205,11 +7227,11 @@ module) (0-based).
|
|||||||
/**
|
/**
|
||||||
* Types of reasons why a cookie may not be stored from a response.
|
* Types of reasons why a cookie may not be stored from a response.
|
||||||
*/
|
*/
|
||||||
export type SetCookieBlockedReason = "SecureOnly"|"SameSiteStrict"|"SameSiteLax"|"SameSiteUnspecifiedTreatedAsLax"|"SameSiteNoneInsecure"|"UserPreferences"|"SyntaxError"|"SchemeNotSupported"|"OverwriteSecure"|"InvalidDomain"|"InvalidPrefix"|"UnknownError"|"SchemefulSameSiteStrict"|"SchemefulSameSiteLax"|"SchemefulSameSiteUnspecifiedTreatedAsLax";
|
export type SetCookieBlockedReason = "SecureOnly"|"SameSiteStrict"|"SameSiteLax"|"SameSiteUnspecifiedTreatedAsLax"|"SameSiteNoneInsecure"|"UserPreferences"|"SyntaxError"|"SchemeNotSupported"|"OverwriteSecure"|"InvalidDomain"|"InvalidPrefix"|"UnknownError"|"SchemefulSameSiteStrict"|"SchemefulSameSiteLax"|"SchemefulSameSiteUnspecifiedTreatedAsLax"|"SamePartyFromCrossPartyContext"|"SamePartyConflictsWithOtherAttributes";
|
||||||
/**
|
/**
|
||||||
* Types of reasons why a cookie may not be sent with a request.
|
* Types of reasons why a cookie may not be sent with a request.
|
||||||
*/
|
*/
|
||||||
export type CookieBlockedReason = "SecureOnly"|"NotOnPath"|"DomainMismatch"|"SameSiteStrict"|"SameSiteLax"|"SameSiteUnspecifiedTreatedAsLax"|"SameSiteNoneInsecure"|"UserPreferences"|"UnknownError"|"SchemefulSameSiteStrict"|"SchemefulSameSiteLax"|"SchemefulSameSiteUnspecifiedTreatedAsLax";
|
export type CookieBlockedReason = "SecureOnly"|"NotOnPath"|"DomainMismatch"|"SameSiteStrict"|"SameSiteLax"|"SameSiteUnspecifiedTreatedAsLax"|"SameSiteNoneInsecure"|"UserPreferences"|"UnknownError"|"SchemefulSameSiteStrict"|"SchemefulSameSiteLax"|"SchemefulSameSiteUnspecifiedTreatedAsLax"|"SamePartyFromCrossPartyContext";
|
||||||
/**
|
/**
|
||||||
* A cookie which was not stored from a response with the corresponding reason.
|
* A cookie which was not stored from a response with the corresponding reason.
|
||||||
*/
|
*/
|
||||||
@ -8007,6 +8029,11 @@ are represented by the invalid cookie line string instead of a proper cookie.
|
|||||||
* Raw response headers as they were received over the wire.
|
* Raw response headers as they were received over the wire.
|
||||||
*/
|
*/
|
||||||
headers: Headers;
|
headers: Headers;
|
||||||
|
/**
|
||||||
|
* The IP address space of the resource. The address space can only be determined once the transport
|
||||||
|
established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
|
||||||
|
*/
|
||||||
|
resourceIPAddressSpace: IPAddressSpace;
|
||||||
/**
|
/**
|
||||||
* Raw response header text as it was received over the wire. The raw text may not always be
|
* Raw response header text as it was received over the wire. The raw text may not always be
|
||||||
available, such as in the case of HTTP/2 or QUIC.
|
available, such as in the case of HTTP/2 or QUIC.
|
||||||
@ -8702,6 +8729,23 @@ continueInterceptedRequest call.
|
|||||||
*/
|
*/
|
||||||
crossAlignment?: LineStyle;
|
crossAlignment?: LineStyle;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Configuration data for the highlighting of Flex item elements.
|
||||||
|
*/
|
||||||
|
export interface FlexItemHighlightConfig {
|
||||||
|
/**
|
||||||
|
* Style of the box representing the item's base size
|
||||||
|
*/
|
||||||
|
baseSizeBox?: BoxStyle;
|
||||||
|
/**
|
||||||
|
* Style of the border around the box representing the item's base size
|
||||||
|
*/
|
||||||
|
baseSizeBorder?: LineStyle;
|
||||||
|
/**
|
||||||
|
* Style of the arrow representing if the item grew or shrank
|
||||||
|
*/
|
||||||
|
flexibilityArrow?: LineStyle;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Style information for drawing a line.
|
* Style information for drawing a line.
|
||||||
*/
|
*/
|
||||||
@ -8797,6 +8841,10 @@ continueInterceptedRequest call.
|
|||||||
* The flex container highlight configuration (default: all transparent).
|
* The flex container highlight configuration (default: all transparent).
|
||||||
*/
|
*/
|
||||||
flexContainerHighlightConfig?: FlexContainerHighlightConfig;
|
flexContainerHighlightConfig?: FlexContainerHighlightConfig;
|
||||||
|
/**
|
||||||
|
* The flex item highlight configuration (default: all transparent).
|
||||||
|
*/
|
||||||
|
flexItemHighlightConfig?: FlexItemHighlightConfig;
|
||||||
/**
|
/**
|
||||||
* The contrast algorithm to use for the contrast ratio (default: aa).
|
* The contrast algorithm to use for the contrast ratio (default: aa).
|
||||||
*/
|
*/
|
||||||
@ -16022,6 +16070,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
|||||||
"Audits.getEncodedResponse": Audits.getEncodedResponseParameters;
|
"Audits.getEncodedResponse": Audits.getEncodedResponseParameters;
|
||||||
"Audits.disable": Audits.disableParameters;
|
"Audits.disable": Audits.disableParameters;
|
||||||
"Audits.enable": Audits.enableParameters;
|
"Audits.enable": Audits.enableParameters;
|
||||||
|
"Audits.checkContrast": Audits.checkContrastParameters;
|
||||||
"BackgroundService.startObserving": BackgroundService.startObservingParameters;
|
"BackgroundService.startObserving": BackgroundService.startObservingParameters;
|
||||||
"BackgroundService.stopObserving": BackgroundService.stopObservingParameters;
|
"BackgroundService.stopObserving": BackgroundService.stopObservingParameters;
|
||||||
"BackgroundService.setRecording": BackgroundService.setRecordingParameters;
|
"BackgroundService.setRecording": BackgroundService.setRecordingParameters;
|
||||||
@ -16529,6 +16578,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
|||||||
"Audits.getEncodedResponse": Audits.getEncodedResponseReturnValue;
|
"Audits.getEncodedResponse": Audits.getEncodedResponseReturnValue;
|
||||||
"Audits.disable": Audits.disableReturnValue;
|
"Audits.disable": Audits.disableReturnValue;
|
||||||
"Audits.enable": Audits.enableReturnValue;
|
"Audits.enable": Audits.enableReturnValue;
|
||||||
|
"Audits.checkContrast": Audits.checkContrastReturnValue;
|
||||||
"BackgroundService.startObserving": BackgroundService.startObservingReturnValue;
|
"BackgroundService.startObserving": BackgroundService.startObservingReturnValue;
|
||||||
"BackgroundService.stopObserving": BackgroundService.stopObservingReturnValue;
|
"BackgroundService.stopObserving": BackgroundService.stopObservingReturnValue;
|
||||||
"BackgroundService.setRecording": BackgroundService.setRecordingReturnValue;
|
"BackgroundService.setRecording": BackgroundService.setRecordingReturnValue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user