Skip to content

Commit 880775a

Browse files
authored
chore(roll): roll Playwright to 1.45.0-beta-1719505820000 (#2951)
1 parent f6b5ef7 commit 880775a

File tree

8 files changed

+10
-39
lines changed

8 files changed

+10
-39
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
| | Linux | macOS | Windows |
55
| :--- | :---: | :---: | :---: |
6-
| Chromium <!-- GEN:chromium-version -->127.0.6533.5<!-- GEN:stop --> ||||
6+
| Chromium <!-- GEN:chromium-version -->127.0.6533.17<!-- GEN:stop --> ||||
77
| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> ||||
88
| Firefox <!-- GEN:firefox-version -->127.0<!-- GEN:stop --> ||||
99

src/Common/Version.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<AssemblyVersion>1.45.0</AssemblyVersion>
44
<PackageVersion>$(AssemblyVersion)</PackageVersion>
5-
<DriverVersion>1.45.0-beta-1718782041000</DriverVersion>
5+
<DriverVersion>1.45.0-beta-1719505820000</DriverVersion>
66
<ReleaseVersion>$(AssemblyVersion)</ReleaseVersion>
77
<FileVersion>$(AssemblyVersion)</FileVersion>
88
<NoDefaultExcludes>true</NoDefaultExcludes>

src/Playwright/API/Generated/IBrowserContext.cs

-20
Original file line numberDiff line numberDiff line change
@@ -350,26 +350,6 @@ public partial interface IBrowserContext
350350
/// "&lt;div&gt;&lt;/div&gt;");<br/>
351351
/// await page.GetByRole(AriaRole.Button).ClickAsync();
352352
/// </code>
353-
/// <para>An example of passing an element handle:</para>
354-
/// <code>
355-
/// var result = new TaskCompletionSource&lt;string&gt;();<br/>
356-
/// var page = await Context.NewPageAsync();<br/>
357-
/// await Context.ExposeBindingAsync("clicked", async (BindingSource _, IJSHandle t) =&gt;<br/>
358-
/// {<br/>
359-
/// return result.TrySetResult(await t.AsElement().TextContentAsync());<br/>
360-
/// });<br/>
361-
/// <br/>
362-
/// await page.SetContentAsync("&lt;script&gt;\n" +<br/>
363-
/// " document.addEventListener('click', event =&gt; window.clicked(event.target));\n" +<br/>
364-
/// "&lt;/script&gt;\n" +<br/>
365-
/// "&lt;div&gt;Click me&lt;/div&gt;\n" +<br/>
366-
/// "&lt;div&gt;Or click me&lt;/div&gt;\n");<br/>
367-
/// <br/>
368-
/// await page.ClickAsync("div");<br/>
369-
/// // Note: it makes sense to await the result here, because otherwise, the context<br/>
370-
/// // gets closed and the binding function will throw an exception.<br/>
371-
/// Assert.AreEqual("Click me", await result.Task);
372-
/// </code>
373353
/// </summary>
374354
/// <param name="name">Name of the function on the window object.</param>
375355
/// <param name="callback">Callback function that will be called in the Playwright's context.</param>

src/Playwright/API/Generated/IPage.cs

-17
Original file line numberDiff line numberDiff line change
@@ -794,23 +794,6 @@ public partial interface IPage
794794
/// }<br/>
795795
/// }
796796
/// </code>
797-
/// <para>An example of passing an element handle:</para>
798-
/// <code>
799-
/// var result = new TaskCompletionSource&lt;string&gt;();<br/>
800-
/// await page.ExposeBindingAsync("clicked", async (BindingSource _, IJSHandle t) =&gt;<br/>
801-
/// {<br/>
802-
/// return result.TrySetResult(await t.AsElement().TextContentAsync());<br/>
803-
/// });<br/>
804-
/// <br/>
805-
/// await page.SetContentAsync("&lt;script&gt;\n" +<br/>
806-
/// " document.addEventListener('click', event =&gt; window.clicked(event.target));\n" +<br/>
807-
/// "&lt;/script&gt;\n" +<br/>
808-
/// "&lt;div&gt;Click me&lt;/div&gt;\n" +<br/>
809-
/// "&lt;div&gt;Or click me&lt;/div&gt;\n");<br/>
810-
/// <br/>
811-
/// await page.ClickAsync("div");<br/>
812-
/// Console.WriteLine(await result.Task);
813-
/// </code>
814797
/// </summary>
815798
/// <remarks><para>Functions installed via <see cref="IPage.ExposeBindingAsync"/> survive navigations.</para></remarks>
816799
/// <param name="name">Name of the function on the window object.</param>

src/Playwright/API/Generated/Options/BrowserContextExposeBindingOptions.cs

+2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ public BrowserContextExposeBindingOptions(BrowserContextExposeBindingOptions clo
4343
}
4444

4545
/// <summary>
46+
/// <para>**DEPRECATED** This option will be removed in the future.</para>
4647
/// <para>
4748
/// Whether to pass the argument as a handle, instead of passing by value. When passing
4849
/// a handle, only one argument is supported. When passing by value, multiple arguments
4950
/// are supported.
5051
/// </para>
5152
/// </summary>
5253
[JsonPropertyName("handle")]
54+
[System.Obsolete]
5355
public bool? Handle { get; set; }
5456
}
5557

src/Playwright/API/Generated/Options/PageExposeBindingOptions.cs

+2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ public PageExposeBindingOptions(PageExposeBindingOptions clone)
4343
}
4444

4545
/// <summary>
46+
/// <para>**DEPRECATED** This option will be removed in the future.</para>
4647
/// <para>
4748
/// Whether to pass the argument as a handle, instead of passing by value. When passing
4849
/// a handle, only one argument is supported. When passing by value, multiple arguments
4950
/// are supported.
5051
/// </para>
5152
/// </summary>
5253
[JsonPropertyName("handle")]
54+
[System.Obsolete]
5355
public bool? Handle { get; set; }
5456
}
5557

src/Playwright/Core/BrowserContext.cs

+2
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ public async Task<IReadOnlyList<BrowserContextCookiesResult>> CookiesAsync(IEnum
374374

375375
[MethodImpl(MethodImplOptions.NoInlining)]
376376
public Task ExposeBindingAsync(string name, Action callback, BrowserContextExposeBindingOptions options = default)
377+
#pragma warning disable CS0612 // Type or member is obsolete
377378
=> ExposeBindingAsync(name, callback, handle: options?.Handle ?? false);
379+
#pragma warning restore CS0612 // Type or member is obsolete
378380

379381
[MethodImpl(MethodImplOptions.NoInlining)]
380382
public Task ExposeBindingAsync(string name, Action<BindingSource> callback)

src/Playwright/Core/Page.cs

+2
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,9 @@ public async Task<IResponse> ReloadAsync(PageReloadOptions options = default)
808808

809809
[MethodImpl(MethodImplOptions.NoInlining)]
810810
public Task ExposeBindingAsync(string name, Action callback, PageExposeBindingOptions options = default)
811+
#pragma warning disable CS0612 // Type or member is obsolete
811812
=> InnerExposeBindingAsync(name, (Delegate)callback, options?.Handle ?? false);
813+
#pragma warning restore CS0612 // Type or member is obsolete
812814

813815
[MethodImpl(MethodImplOptions.NoInlining)]
814816
public Task ExposeBindingAsync(string name, Action<BindingSource> callback)

0 commit comments

Comments
 (0)