Skip to content

Commit c457c57

Browse files
authored
chore: roll driver to 1.59.0-alpha-1774622285000 (#3290)
1 parent 92a4b6f commit c457c57

21 files changed

Lines changed: 406 additions & 145 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
| | Linux | macOS | Windows |
55
| :--- | :---: | :---: | :---: |
6-
| Chromium <!-- GEN:chromium-version -->146.0.7680.31<!-- GEN:stop --> ||||
6+
| Chromium <!-- GEN:chromium-version -->147.0.7727.15<!-- GEN:stop --> ||||
77
| WebKit <!-- GEN:webkit-version -->26.0<!-- GEN:stop --> ||||
88
| Firefox <!-- GEN:firefox-version -->148.0.2<!-- GEN:stop --> ||||
99

src/Common/Version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<AssemblyVersion>1.58.0</AssemblyVersion>
44
<PackageVersion>$(AssemblyVersion)</PackageVersion>
5-
<DriverVersion>1.59.0-alpha-2026-03-24</DriverVersion>
5+
<DriverVersion>1.59.0-alpha-1774622285000</DriverVersion>
66
<ReleaseVersion>$(AssemblyVersion)</ReleaseVersion>
77
<FileVersion>$(AssemblyVersion)</FileVersion>
88
<NoDefaultExcludes>true</NoDefaultExcludes>

src/Playwright.TestingHarnessTest/package-lock.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Playwright.TestingHarnessTest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "playwright.testingharnesstest",
33
"private": true,
44
"devDependencies": {
5-
"@playwright/test": "1.59.0-alpha-2026-03-24",
5+
"@playwright/test": "1.59.0-alpha-1774622285000",
66
"@types/node": "^22.12.0",
77
"fast-xml-parser": "^4.5.0"
88
}

src/Playwright.Tests/PageEventCrashTests.cs

Lines changed: 0 additions & 101 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* MIT License
3+
*
4+
* Copyright (c) Microsoft Corporation.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
25+
using System.Runtime.Serialization;
26+
27+
namespace Microsoft.Playwright;
28+
29+
public enum AnnotatePosition
30+
{
31+
[EnumMember(Value = "top-left")]
32+
TopLeft,
33+
[EnumMember(Value = "top")]
34+
Top,
35+
[EnumMember(Value = "top-right")]
36+
TopRight,
37+
[EnumMember(Value = "bottom-left")]
38+
BottomLeft,
39+
[EnumMember(Value = "bottom")]
40+
Bottom,
41+
[EnumMember(Value = "bottom-right")]
42+
BottomRight,
43+
}

src/Playwright/API/Generated/Enums/ConsoleMessagesFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public enum ConsoleMessagesFilter
3030
{
3131
[EnumMember(Value = "all")]
3232
All,
33-
[EnumMember(Value = "sinceNavigation")]
33+
[EnumMember(Value = "since-navigation")]
3434
SinceNavigation,
3535
}

src/Playwright/API/Generated/IDebugger.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424

2525
using System;
26-
using System.Collections.Generic;
2726
using System.Threading.Tasks;
2827

2928
namespace Microsoft.Playwright;
@@ -41,11 +40,11 @@ public partial interface IDebugger
4140

4241
/// <summary>
4342
/// <para>
44-
/// Returns details about the currently paused calls. Returns an empty array if the
45-
/// debugger is not paused.
43+
/// Returns details about the currently paused call. Returns <c>null</c> if the debugger
44+
/// is not paused.
4645
/// </para>
4746
/// </summary>
48-
IReadOnlyList<PausedDetail> PausedDetails { get; }
47+
PausedDetail? PausedDetails { get; }
4948

5049
/// <summary>
5150
/// <para>Configures the debugger to pause before the next action is executed.</para>
@@ -55,12 +54,12 @@ public partial interface IDebugger
5554
/// </para>
5655
/// <para>
5756
/// Note that <see cref="IPage.PauseAsync"/> is equivalent to a "debugger" statement
58-
/// — it pauses execution at the call site immediately. On the contrary, <see cref="IDebugger.PauseAsync"/>
57+
/// — it pauses execution at the call site immediately. On the contrary, <see cref="IDebugger.RequestPauseAsync"/>
5958
/// is equivalent to "pause on next statement" — it configures the debugger to pause
6059
/// before the next action is executed.
6160
/// </para>
6261
/// </summary>
63-
Task PauseAsync();
62+
Task RequestPauseAsync();
6463

6564
/// <summary><para>Resumes script execution. Throws if the debugger is not paused.</para></summary>
6665
Task ResumeAsync();

src/Playwright/API/Generated/ILocator.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ public partial interface ILocator
148148
/// <item><description>Generic static text can be represented with the <c>text</c> key.</description></item>
149149
/// </list>
150150
/// <para>Below is the HTML markup and the respective ARIA snapshot:</para>
151+
/// <para>
152+
/// An AI-optimized snapshot, controlled by <see cref="ILocator.AriaSnapshotAsync"/>,
153+
/// is different from a default snapshot:
154+
/// </para>
155+
/// <list type="ordinal">
156+
/// <item><description>
157+
/// Includes element references <c>[ref=e2]</c>. 2. Does not wait for an element matching
158+
/// the locator, and throws when no elements match. 3. Includes snapshots of <c>&lt;iframe&gt;</c>s
159+
/// inside the target.
160+
/// </description></item>
161+
/// </list>
151162
/// </summary>
152163
/// <param name="options">Call options</param>
153164
Task<string> AriaSnapshotAsync(LocatorAriaSnapshotOptions? options = default);
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* MIT License
3+
*
4+
* Copyright (c) Microsoft Corporation.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
25+
using System;
26+
using System.Threading.Tasks;
27+
28+
namespace Microsoft.Playwright;
29+
30+
/// <summary>
31+
/// <para>
32+
/// Interface for managing page overlays that display persistent visual indicators on
33+
/// top of the page.
34+
/// </para>
35+
/// </summary>
36+
public partial interface IOverlay
37+
{
38+
/// <summary>
39+
/// <para>
40+
/// Adds an overlay with the given HTML content. The overlay is displayed on top of
41+
/// the page until removed. Returns a disposable that removes the overlay when disposed.
42+
/// </para>
43+
/// </summary>
44+
/// <param name="html">HTML content for the overlay.</param>
45+
/// <param name="options">Call options</param>
46+
Task<IAsyncDisposable> ShowAsync(string html, OverlayShowOptions? options = default);
47+
48+
/// <summary>
49+
/// <para>
50+
/// Shows a chapter overlay with a title and optional description, centered on the page
51+
/// with a blurred backdrop. Useful for narrating video recordings. The overlay is removed
52+
/// after the specified duration, or 2000ms.
53+
/// </para>
54+
/// </summary>
55+
/// <param name="title">Title text displayed prominently in the overlay.</param>
56+
/// <param name="options">Call options</param>
57+
Task ChapterAsync(string title, OverlayChapterOptions? options = default);
58+
59+
/// <summary><para>Sets visibility of all overlays without removing them.</para></summary>
60+
/// <param name="visible">Whether overlays should be visible.</param>
61+
Task SetVisibleAsync(bool visible);
62+
}

0 commit comments

Comments
 (0)