Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
feat(chromium): roll to r938553 (#10112)
github-actions[bot]cc72299cbc79
diff --git a/README.md b/README.mdindex 4c56878a48..a55f766bd8 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@# 🎭 Playwright-[](https://www.npmjs.com/package/playwright) [](https://aka.ms/playwright-slack) <!-- 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://aka.ms/playwright-slack) <!-- 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/docs/api/class-playwright/)@@ -8,7 +8,7 @@ Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/| | Linux | macOS | Windows || :--- | :---: | :---: | :---: |-| Chromium <!-- GEN:chromium-version -->97.0.4688.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |+| Chromium <!-- GEN:chromium-version -->97.0.4692.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: || WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: || Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |diff --git a/package.json b/package.jsonindex 0d9a632afa..8fb8c6108d 100644--- a/package.json+++ b/package.json@@ -73,7 +73,7 @@"ansi-to-html": "^0.7.1","babel-loader": "^8.2.2","chokidar": "^3.5.0",- "chromedriver": "^94.0.0",+ "chromedriver": "^95.0.0","commonmark": "^0.29.1","concurrently": "^6.2.1","copy-webpack-plugin": "^9.0.1",diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.jsonindex b6db734422..057389418f 100644--- a/packages/playwright-core/browsers.json+++ b/packages/playwright-core/browsers.json@@ -3,12 +3,12 @@"browsers": [{"name": "chromium",- "revision": "936784",+ "revision": "938553","installByDefault": true},{"name": "chromium-with-symbols",- "revision": "936784",+ "revision": "938553","installByDefault": false},{diff --git a/packages/playwright-core/src/server/chromium/protocol.d.ts b/packages/playwright-core/src/server/chromium/protocol.d.tsindex 6eb6e98f31..027478ea39 100644--- a/packages/playwright-core/src/server/chromium/protocol.d.ts+++ b/packages/playwright-core/src/server/chromium/protocol.d.ts@@ -797,12 +797,31 @@ instead of "limited-quirks".errorType: GenericIssueErrorType;frameId?: Page.FrameId;}+ /**+ * This issue tracks information needed to print a deprecation message.+The formatting is inherited from the old console.log version, see more at:+https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc+TODO(crbug.com/1264960): Re-work format to add i18n support per:+https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md+ */+ export interface DeprecationIssueDetails {+ affectedFrame?: AffectedFrame;+ sourceCodeLocation: SourceCodeLocation;+ /**+ * The content of the deprecation issue (this won't be translated),+e.g. "window.inefficientLegacyStorageMethod will be removed in M97,+around January 2022. Please use Web Storage or Indexed Database+instead. This standard was abandoned in January, 1970. See+https://www.chromestatus.com/feature/5684870116278272 for more details."+ */+ message?: string;+ }/*** A unique identifier for the type of issue. Each type may use one of theoptional fields in InspectorIssueDetails to convey more specificinformation about the kind of issue.*/- export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferIssue"|"TrustedWebActivityIssue"|"LowTextContrastIssue"|"CorsIssue"|"AttributionReportingIssue"|"QuirksModeIssue"|"NavigatorUserAgentIssue"|"WasmCrossOriginModuleSharingIssue"|"GenericIssue";+ export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferIssue"|"TrustedWebActivityIssue"|"LowTextContrastIssue"|"CorsIssue"|"AttributionReportingIssue"|"QuirksModeIssue"|"NavigatorUserAgentIssue"|"WasmCrossOriginModuleSharingIssue"|"GenericIssue"|"DeprecationIssue";/*** This struct holds a list of optional fields with additional informationspecific to the kind of issue. When adding a new issue code, please also@@ -823,6 +842,7 @@ add a new optional field to this type.navigatorUserAgentIssueDetails?: NavigatorUserAgentIssueDetails;wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;genericIssueDetails?: GenericIssueDetails;+ deprecationIssueDetails?: DeprecationIssueDetails;}/*** A unique id for a DevTools inspector issue. Allows other entities (e.g.@@ -4126,6 +4146,39 @@ EventTarget.}}+ /**+ * EventBreakpoints permits setting breakpoints on particular operations and+events in targets that run JavaScript but do not have a DOM.+JavaScript execution will stop on these operations as if there was a regular+breakpoint set.+ */+ export module EventBreakpoints {+++ /**+ * Sets breakpoint on particular native event.+ */+ export type setInstrumentationBreakpointParameters = {+ /**+ * Instrumentation name to stop on.+ */+ eventName: string;+ }+ export type setInstrumentationBreakpointReturnValue = {+ }+ /**+ * Removes breakpoint on particular native event.+ */+ export type removeInstrumentationBreakpointParameters = {+ /**+ * Instrumentation name to stop on.+ */+ eventName: string;+ }+ export type removeInstrumentationBreakpointReturnValue = {+ }+ }+/*** This domain facilitates obtaining document snapshots with DOM, layout, and style information.*/@@ -7116,9 +7169,10 @@ request correspondinfg to the main frame.*/logId: string;/**- * Issuance date.+ * Issuance date. Unlike TimeSinceEpoch, this contains the number of+milliseconds since January 1, 1970, UTC, not the number of seconds.*/- timestamp: TimeSinceEpoch;+ timestamp: number;/*** Hash algorithm.*/@@ -11559,6 +11613,15 @@ cross-process navigation.}export type clearCompilationCacheReturnValue = {}+ /**+ * Sets the Secure Payment Confirmation transaction mode.+https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode+ */+ export type setSPCTransactionModeParameters = {+ mode: "none"|"autoaccept"|"autoreject";+ }+ export type setSPCTransactionModeReturnValue = {+ }/*** Generates a report for testing.*/@@ -11999,8 +12062,8 @@ certificate errors at the same time.*/schemeIsCryptographic: boolean;/**- * List of explanations for the security state. If the overall security state is `insecure` or-`warning`, at least one corresponding explanation should be included.+ * Previously a list of explanations for the security state. Now always+empty.*/explanations: SecurityStateExplanation[];/**@@ -12008,7 +12071,7 @@ certificate errors at the same time.*/insecureContentStatus: InsecureContentStatus;/**- * Overrides user-visible description of the state.+ * Overrides user-visible description of the state. Always omitted.*/summary?: string;}@@ -16978,6 +17041,8 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications."DOMDebugger.setEventListenerBreakpoint": DOMDebugger.setEventListenerBreakpointParameters;"DOMDebugger.setInstrumentationBreakpoint": DOMDebugger.setInstrumentationBreakpointParameters;"DOMDebugger.setXHRBreakpoint": DOMDebugger.setXHRBreakpointParameters;+ "EventBreakpoints.setInstrumentationBreakpoint": EventBreakpoints.setInstrumentationBreakpointParameters;+ "EventBreakpoints.removeInstrumentationBreakpoint": EventBreakpoints.removeInstrumentationBreakpointParameters;"DOMSnapshot.disable": DOMSnapshot.disableParameters;"DOMSnapshot.enable": DOMSnapshot.enableParameters;"DOMSnapshot.getSnapshot": DOMSnapshot.getSnapshotParameters;@@ -17189,6 +17254,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications."Page.produceCompilationCache": Page.produceCompilationCacheParameters;"Page.addCompilationCache": Page.addCompilationCacheParameters;"Page.clearCompilationCache": Page.clearCompilationCacheParameters;+ "Page.setSPCTransactionMode": Page.setSPCTransactionModeParameters;"Page.generateTestReport": Page.generateTestReportParameters;"Page.waitForDebugger": Page.waitForDebuggerParameters;"Page.setInterceptFileChooserDialog": Page.setInterceptFileChooserDialogParameters;@@ -17495,6 +17561,8 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications."DOMDebugger.setEventListenerBreakpoint": DOMDebugger.setEventListenerBreakpointReturnValue;"DOMDebugger.setInstrumentationBreakpoint": DOMDebugger.setInstrumentationBreakpointReturnValue;"DOMDebugger.setXHRBreakpoint": DOMDebugger.setXHRBreakpointReturnValue;+ "EventBreakpoints.setInstrumentationBreakpoint": EventBreakpoints.setInstrumentationBreakpointReturnValue;+ "EventBreakpoints.removeInstrumentationBreakpoint": EventBreakpoints.removeInstrumentationBreakpointReturnValue;"DOMSnapshot.disable": DOMSnapshot.disableReturnValue;"DOMSnapshot.enable": DOMSnapshot.enableReturnValue;"DOMSnapshot.getSnapshot": DOMSnapshot.getSnapshotReturnValue;@@ -17706,6 +17774,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications."Page.produceCompilationCache": Page.produceCompilationCacheReturnValue;"Page.addCompilationCache": Page.addCompilationCacheReturnValue;"Page.clearCompilationCache": Page.clearCompilationCacheReturnValue;+ "Page.setSPCTransactionMode": Page.setSPCTransactionModeReturnValue;"Page.generateTestReport": Page.generateTestReportReturnValue;"Page.waitForDebugger": Page.waitForDebuggerReturnValue;"Page.setInterceptFileChooserDialog": Page.setInterceptFileChooserDialogReturnValue;diff --git a/packages/playwright-core/src/server/deviceDescriptorsSource.json b/packages/playwright-core/src/server/deviceDescriptorsSource.jsonindex cdfecb0911..a90f06ecd6 100644--- a/packages/playwright-core/src/server/deviceDescriptorsSource.json+++ b/packages/playwright-core/src/server/deviceDescriptorsSource.json@@ -110,7 +110,7 @@"defaultBrowserType": "webkit"},"Galaxy S5": {- "userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 360,"height": 640@@ -121,7 +121,7 @@"defaultBrowserType": "chromium"},"Galaxy S5 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 640,"height": 360@@ -132,7 +132,7 @@"defaultBrowserType": "chromium"},"Galaxy S8": {- "userAgent": "Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 360,"height": 740@@ -143,7 +143,7 @@"defaultBrowserType": "chromium"},"Galaxy S8 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 740,"height": 360@@ -154,7 +154,7 @@"defaultBrowserType": "chromium"},"Galaxy S9+": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 320,"height": 658@@ -165,7 +165,7 @@"defaultBrowserType": "chromium"},"Galaxy S9+ landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 658,"height": 320@@ -176,7 +176,7 @@"defaultBrowserType": "chromium"},"Galaxy Tab S4": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36","viewport": {"width": 712,"height": 1138@@ -187,7 +187,7 @@"defaultBrowserType": "chromium"},"Galaxy Tab S4 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36","viewport": {"width": 1138,"height": 712@@ -828,7 +828,7 @@"defaultBrowserType": "webkit"},"LG Optimus L70": {- "userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 384,"height": 640@@ -839,7 +839,7 @@"defaultBrowserType": "chromium"},"LG Optimus L70 landscape": {- "userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 640,"height": 384@@ -850,7 +850,7 @@"defaultBrowserType": "chromium"},"Microsoft Lumia 550": {- "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36 Edge/14.14263",+ "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36 Edge/14.14263","viewport": {"width": 640,"height": 360@@ -861,7 +861,7 @@"defaultBrowserType": "chromium"},"Microsoft Lumia 550 landscape": {- "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36 Edge/14.14263",+ "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36 Edge/14.14263","viewport": {"width": 360,"height": 640@@ -872,7 +872,7 @@"defaultBrowserType": "chromium"},"Microsoft Lumia 950": {- "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36 Edge/14.14263",+ "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36 Edge/14.14263","viewport": {"width": 360,"height": 640@@ -883,7 +883,7 @@"defaultBrowserType": "chromium"},"Microsoft Lumia 950 landscape": {- "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36 Edge/14.14263",+ "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36 Edge/14.14263","viewport": {"width": 640,"height": 360@@ -894,7 +894,7 @@"defaultBrowserType": "chromium"},"Nexus 10": {- "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36","viewport": {"width": 800,"height": 1280@@ -905,7 +905,7 @@"defaultBrowserType": "chromium"},"Nexus 10 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36","viewport": {"width": 1280,"height": 800@@ -916,7 +916,7 @@"defaultBrowserType": "chromium"},"Nexus 4": {- "userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 384,"height": 640@@ -927,7 +927,7 @@"defaultBrowserType": "chromium"},"Nexus 4 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 640,"height": 384@@ -938,7 +938,7 @@"defaultBrowserType": "chromium"},"Nexus 5": {- "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 360,"height": 640@@ -949,7 +949,7 @@"defaultBrowserType": "chromium"},"Nexus 5 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 640,"height": 360@@ -960,7 +960,7 @@"defaultBrowserType": "chromium"},"Nexus 5X": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 412,"height": 732@@ -971,7 +971,7 @@"defaultBrowserType": "chromium"},"Nexus 5X landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 732,"height": 412@@ -982,7 +982,7 @@"defaultBrowserType": "chromium"},"Nexus 6": {- "userAgent": "Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 412,"height": 732@@ -993,7 +993,7 @@"defaultBrowserType": "chromium"},"Nexus 6 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 732,"height": 412@@ -1004,7 +1004,7 @@"defaultBrowserType": "chromium"},"Nexus 6P": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 412,"height": 732@@ -1015,7 +1015,7 @@"defaultBrowserType": "chromium"},"Nexus 6P landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 732,"height": 412@@ -1026,7 +1026,7 @@"defaultBrowserType": "chromium"},"Nexus 7": {- "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36","viewport": {"width": 600,"height": 960@@ -1037,7 +1037,7 @@"defaultBrowserType": "chromium"},"Nexus 7 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36","viewport": {"width": 960,"height": 600@@ -1092,7 +1092,7 @@"defaultBrowserType": "webkit"},"Pixel 2": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 411,"height": 731@@ -1103,7 +1103,7 @@"defaultBrowserType": "chromium"},"Pixel 2 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 731,"height": 411@@ -1114,7 +1114,7 @@"defaultBrowserType": "chromium"},"Pixel 2 XL": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 411,"height": 823@@ -1125,7 +1125,7 @@"defaultBrowserType": "chromium"},"Pixel 2 XL landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 823,"height": 411@@ -1136,7 +1136,7 @@"defaultBrowserType": "chromium"},"Pixel 3": {- "userAgent": "Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 393,"height": 786@@ -1147,7 +1147,7 @@"defaultBrowserType": "chromium"},"Pixel 3 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 786,"height": 393@@ -1158,7 +1158,7 @@"defaultBrowserType": "chromium"},"Pixel 4": {- "userAgent": "Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 353,"height": 745@@ -1169,7 +1169,7 @@"defaultBrowserType": "chromium"},"Pixel 4 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 745,"height": 353@@ -1180,7 +1180,7 @@"defaultBrowserType": "chromium"},"Pixel 4a (5G)": {- "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","screen": {"width": 412,"height": 892@@ -1195,7 +1195,7 @@"defaultBrowserType": "chromium"},"Pixel 4a (5G) landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","screen": {"height": 892,"width": 412@@ -1210,7 +1210,7 @@"defaultBrowserType": "chromium"},"Pixel 5": {- "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","screen": {"width": 393,"height": 851@@ -1225,7 +1225,7 @@"defaultBrowserType": "chromium"},"Pixel 5 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","screen": {"width": 851,"height": 393@@ -1240,7 +1240,7 @@"defaultBrowserType": "chromium"},"Moto G4": {- "userAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 360,"height": 640@@ -1251,7 +1251,7 @@"defaultBrowserType": "chromium"},"Moto G4 landscape": {- "userAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Mobile Safari/537.36",+ "userAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Mobile Safari/537.36","viewport": {"width": 640,"height": 360@@ -1262,7 +1262,7 @@"defaultBrowserType": "chromium"},"Desktop Chrome HiDPI": {- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36",+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36","screen": {"width": 1792,"height": 1120@@ -1277,7 +1277,7 @@"defaultBrowserType": "chromium"},"Desktop Edge HiDPI": {- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36 Edg/97.0.4688.0",+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36 Edg/97.0.4692.0","screen": {"width": 1792,"height": 1120@@ -1322,7 +1322,7 @@"defaultBrowserType": "webkit"},"Desktop Chrome": {- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36",+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36","screen": {"width": 1920,"height": 1080@@ -1337,7 +1337,7 @@"defaultBrowserType": "chromium"},"Desktop Edge": {- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4688.0 Safari/537.36 Edg/97.0.4688.0",+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.0 Safari/537.36 Edg/97.0.4692.0","screen": {"width": 1920,"height": 1080diff --git a/packages/playwright-core/types/protocol.d.ts b/packages/playwright-core/types/protocol.d.tsindex 6eb6e98f31..027478ea39 100644--- a/packages/playwright-core/types/protocol.d.ts+++ b/packages/playwright-core/types/protocol.d.ts@@ -797,12 +797,31 @@ instead of "limited-quirks".errorType: GenericIssueErrorType;frameId?: Page.FrameId;}+ /**+ * This issue tracks information needed to print a deprecation message.+The formatting is inherited from the old console.log version, see more at:+https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc+TODO(crbug.com/1264960): Re-work format to add i18n support per:+https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md+ */+ export interface DeprecationIssueDetails {+ affectedFrame?: AffectedFrame;+ sourceCodeLocation: SourceCodeLocation;+ /**+ * The content of the deprecation issue (this won't be translated),+e.g. "window.inefficientLegacyStorageMethod will be removed in M97,+around January 2022. Please use Web Storage or Indexed Database+instead. This standard was abandoned in January, 1970. See+https://www.chromestatus.com/feature/5684870116278272 for more details."+ */+ message?: string;+ }/*** A unique identifier for the type of issue. Each type may use one of theoptional fields in InspectorIssueDetails to convey more specificinformation about the kind of issue.*/- export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferIssue"|"TrustedWebActivityIssue"|"LowTextContrastIssue"|"CorsIssue"|"AttributionReportingIssue"|"QuirksModeIssue"|"NavigatorUserAgentIssue"|"WasmCrossOriginModuleSharingIssue"|"GenericIssue";+ export type InspectorIssueCode = "SameSiteCookieIssue"|"MixedContentIssue"|"BlockedByResponseIssue"|"HeavyAdIssue"|"ContentSecurityPolicyIssue"|"SharedArrayBufferIssue"|"TrustedWebActivityIssue"|"LowTextContrastIssue"|"CorsIssue"|"AttributionReportingIssue"|"QuirksModeIssue"|"NavigatorUserAgentIssue"|"WasmCrossOriginModuleSharingIssue"|"GenericIssue"|"DeprecationIssue";/*** This struct holds a list of optional fields with additional informationspecific to the kind of issue. When adding a new issue code, please also@@ -823,6 +842,7 @@ add a new optional field to this type.navigatorUserAgentIssueDetails?: NavigatorUserAgentIssueDetails;wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;genericIssueDetails?: GenericIssueDetails;+ deprecationIssueDetails?: DeprecationIssueDetails;}/*** A unique id for a DevTools inspector issue. Allows other entities (e.g.@@ -4126,6 +4146,39 @@ EventTarget.}}+ /**+ * EventBreakpoints permits setting breakpoints on particular operations and+events in targets that run JavaScript but do not have a DOM.+JavaScript execution will stop on these operations as if there was a regular+breakpoint set.+ */+ export module EventBreakpoints {+++ /**+ * Sets breakpoint on particular native event.+ */+ export type setInstrumentationBreakpointParameters = {+ /**+ * Instrumentation name to stop on.+ */+ eventName: string;+ }+ export type setInstrumentationBreakpointReturnValue = {+ }+ /**+ * Removes breakpoint on particular native event.+ */+ export type removeInstrumentationBreakpointParameters = {+ /**+ * Instrumentation name to stop on.+ */+ eventName: string;+ }+ export type removeInstrumentationBreakpointReturnValue = {+ }+ }+/*** This domain facilitates obtaining document snapshots with DOM, layout, and style information.*/@@ -7116,9 +7169,10 @@ request correspondinfg to the main frame.*/logId: string;/**- * Issuance date.+ * Issuance date. Unlike TimeSinceEpoch, this contains the number of+milliseconds since January 1, 1970, UTC, not the number of seconds.*/- timestamp: TimeSinceEpoch;+ timestamp: number;/*** Hash algorithm.*/@@ -11559,6 +11613,15 @@ cross-process navigation.}export type clearCompilationCacheReturnValue = {}+ /**+ * Sets the Secure Payment Confirmation transaction mode.+https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode+ */+ export type setSPCTransactionModeParameters = {+ mode: "none"|"autoaccept"|"autoreject";+ }+ export type setSPCTransactionModeReturnValue = {+ }/*** Generates a report for testing.*/@@ -11999,8 +12062,8 @@ certificate errors at the same time.*/schemeIsCryptographic: boolean;/**- * List of explanations for the security state. If the overall security state is `insecure` or-`warning`, at least one corresponding explanation should be included.+ * Previously a list of explanations for the security state. Now always+empty.*/explanations: SecurityStateExplanation[];/**@@ -12008,7 +12071,7 @@ certificate errors at the same time.*/insecureContentStatus: InsecureContentStatus;/**- * Overrides user-visible description of the state.+ * Overrides user-visible description of the state. Always omitted.*/summary?: string;}@@ -16978,6 +17041,8 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications."DOMDebugger.setEventListenerBreakpoint": DOMDebugger.setEventListenerBreakpointParameters;"DOMDebugger.setInstrumentationBreakpoint": DOMDebugger.setInstrumentationBreakpointParameters;"DOMDebugger.setXHRBreakpoint": DOMDebugger.setXHRBreakpointParameters;+ "EventBreakpoints.setInstrumentationBreakpoint": EventBreakpoints.setInstrumentationBreakpointParameters;+ "EventBreakpoints.removeInstrumentationBreakpoint": EventBreakpoints.removeInstrumentationBreakpointParameters;"DOMSnapshot.disable": DOMSnapshot.disableParameters;"DOMSnapshot.enable": DOMSnapshot.enableParameters;"DOMSnapshot.getSnapshot": DOMSnapshot.getSnapshotParameters;@@ -17189,6 +17254,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications."Page.produceCompilationCache": Page.produceCompilationCacheParameters;"Page.addCompilationCache": Page.addCompilationCacheParameters;"Page.clearCompilationCache": Page.clearCompilationCacheParameters;+ "Page.setSPCTransactionMode": Page.setSPCTransactionModeParameters;"Page.generateTestReport": Page.generateTestReportParameters;"Page.waitForDebugger": Page.waitForDebuggerParameters;"Page.setInterceptFileChooserDialog": Page.setInterceptFileChooserDialogParameters;@@ -17495,6 +17561,8 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications."DOMDebugger.setEventListenerBreakpoint": DOMDebugger.setEventListenerBreakpointReturnValue;"DOMDebugger.setInstrumentationBreakpoint": DOMDebugger.setInstrumentationBreakpointReturnValue;"DOMDebugger.setXHRBreakpoint": DOMDebugger.setXHRBreakpointReturnValue;+ "EventBreakpoints.setInstrumentationBreakpoint": EventBreakpoints.setInstrumentationBreakpointReturnValue;+ "EventBreakpoints.removeInstrumentationBreakpoint": EventBreakpoints.removeInstrumentationBreakpointReturnValue;"DOMSnapshot.disable": DOMSnapshot.disableReturnValue;"DOMSnapshot.enable": DOMSnapshot.enableReturnValue;"DOMSnapshot.getSnapshot": DOMSnapshot.getSnapshotReturnValue;@@ -17706,6 +17774,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications."Page.produceCompilationCache": Page.produceCompilationCacheReturnValue;"Page.addCompilationCache": Page.addCompilationCacheReturnValue;"Page.clearCompilationCache": Page.clearCompilationCacheReturnValue;+ "Page.setSPCTransactionMode": Page.setSPCTransactionModeReturnValue;"Page.generateTestReport": Page.generateTestReportReturnValue;"Page.waitForDebugger": Page.waitForDebuggerReturnValue;"Page.setInterceptFileChooserDialog": Page.setInterceptFileChooserDialogReturnValue;