File tree 8 files changed +10
-39
lines changed
8 files changed +10
-39
lines changed Original file line number Diff line number Diff line change 3
3
4
4
| | Linux | macOS | Windows |
5
5
| :--- | :---: | :---: | :---: |
6
- | Chromium <!-- GEN:chromium-version --> 127.0.6533.5 <!-- GEN:stop --> | ✅ | ✅ | ✅ |
6
+ | Chromium <!-- GEN:chromium-version --> 127.0.6533.17 <!-- GEN:stop --> | ✅ | ✅ | ✅ |
7
7
| WebKit <!-- GEN:webkit-version --> 17.4<!-- GEN:stop --> | ✅ | ✅ | ✅ |
8
8
| Firefox <!-- GEN:firefox-version --> 127.0<!-- GEN:stop --> | ✅ | ✅ | ✅ |
9
9
Original file line number Diff line number Diff line change 2
2
<PropertyGroup >
3
3
<AssemblyVersion >1.45.0</AssemblyVersion >
4
4
<PackageVersion >$(AssemblyVersion)</PackageVersion >
5
- <DriverVersion >1.45.0-beta-1718782041000 </DriverVersion >
5
+ <DriverVersion >1.45.0-beta-1719505820000 </DriverVersion >
6
6
<ReleaseVersion >$(AssemblyVersion)</ReleaseVersion >
7
7
<FileVersion >$(AssemblyVersion)</FileVersion >
8
8
<NoDefaultExcludes >true</NoDefaultExcludes >
Original file line number Diff line number Diff line change @@ -350,26 +350,6 @@ public partial interface IBrowserContext
350
350
/// "<div></div>");<br/>
351
351
/// await page.GetByRole(AriaRole.Button).ClickAsync();
352
352
/// </code>
353
- /// <para>An example of passing an element handle:</para>
354
- /// <code>
355
- /// var result = new TaskCompletionSource<string>();<br/>
356
- /// var page = await Context.NewPageAsync();<br/>
357
- /// await Context.ExposeBindingAsync("clicked", async (BindingSource _, IJSHandle t) =><br/>
358
- /// {<br/>
359
- /// return result.TrySetResult(await t.AsElement().TextContentAsync());<br/>
360
- /// });<br/>
361
- /// <br/>
362
- /// await page.SetContentAsync("<script>\n" +<br/>
363
- /// " document.addEventListener('click', event => window.clicked(event.target));\n" +<br/>
364
- /// "</script>\n" +<br/>
365
- /// "<div>Click me</div>\n" +<br/>
366
- /// "<div>Or click me</div>\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>
373
353
/// </summary>
374
354
/// <param name="name">Name of the function on the window object.</param>
375
355
/// <param name="callback">Callback function that will be called in the Playwright's context.</param>
Original file line number Diff line number Diff line change @@ -794,23 +794,6 @@ public partial interface IPage
794
794
/// }<br/>
795
795
/// }
796
796
/// </code>
797
- /// <para>An example of passing an element handle:</para>
798
- /// <code>
799
- /// var result = new TaskCompletionSource<string>();<br/>
800
- /// await page.ExposeBindingAsync("clicked", async (BindingSource _, IJSHandle t) =><br/>
801
- /// {<br/>
802
- /// return result.TrySetResult(await t.AsElement().TextContentAsync());<br/>
803
- /// });<br/>
804
- /// <br/>
805
- /// await page.SetContentAsync("<script>\n" +<br/>
806
- /// " document.addEventListener('click', event => window.clicked(event.target));\n" +<br/>
807
- /// "</script>\n" +<br/>
808
- /// "<div>Click me</div>\n" +<br/>
809
- /// "<div>Or click me</div>\n");<br/>
810
- /// <br/>
811
- /// await page.ClickAsync("div");<br/>
812
- /// Console.WriteLine(await result.Task);
813
- /// </code>
814
797
/// </summary>
815
798
/// <remarks><para>Functions installed via <see cref="IPage.ExposeBindingAsync"/> survive navigations.</para></remarks>
816
799
/// <param name="name">Name of the function on the window object.</param>
Original file line number Diff line number Diff line change @@ -43,13 +43,15 @@ public BrowserContextExposeBindingOptions(BrowserContextExposeBindingOptions clo
43
43
}
44
44
45
45
/// <summary>
46
+ /// <para>**DEPRECATED** This option will be removed in the future.</para>
46
47
/// <para>
47
48
/// Whether to pass the argument as a handle, instead of passing by value. When passing
48
49
/// a handle, only one argument is supported. When passing by value, multiple arguments
49
50
/// are supported.
50
51
/// </para>
51
52
/// </summary>
52
53
[ JsonPropertyName ( "handle" ) ]
54
+ [ System . Obsolete ]
53
55
public bool ? Handle { get ; set ; }
54
56
}
55
57
Original file line number Diff line number Diff line change @@ -43,13 +43,15 @@ public PageExposeBindingOptions(PageExposeBindingOptions clone)
43
43
}
44
44
45
45
/// <summary>
46
+ /// <para>**DEPRECATED** This option will be removed in the future.</para>
46
47
/// <para>
47
48
/// Whether to pass the argument as a handle, instead of passing by value. When passing
48
49
/// a handle, only one argument is supported. When passing by value, multiple arguments
49
50
/// are supported.
50
51
/// </para>
51
52
/// </summary>
52
53
[ JsonPropertyName ( "handle" ) ]
54
+ [ System . Obsolete ]
53
55
public bool ? Handle { get ; set ; }
54
56
}
55
57
Original file line number Diff line number Diff line change @@ -374,7 +374,9 @@ public async Task<IReadOnlyList<BrowserContextCookiesResult>> CookiesAsync(IEnum
374
374
375
375
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
376
376
public Task ExposeBindingAsync ( string name , Action callback , BrowserContextExposeBindingOptions options = default )
377
+ #pragma warning disable CS0612 // Type or member is obsolete
377
378
=> ExposeBindingAsync ( name , callback , handle : options ? . Handle ?? false ) ;
379
+ #pragma warning restore CS0612 // Type or member is obsolete
378
380
379
381
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
380
382
public Task ExposeBindingAsync ( string name , Action < BindingSource > callback )
Original file line number Diff line number Diff line change @@ -808,7 +808,9 @@ public async Task<IResponse> ReloadAsync(PageReloadOptions options = default)
808
808
809
809
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
810
810
public Task ExposeBindingAsync ( string name , Action callback , PageExposeBindingOptions options = default )
811
+ #pragma warning disable CS0612 // Type or member is obsolete
811
812
=> InnerExposeBindingAsync ( name , ( Delegate ) callback , options ? . Handle ?? false ) ;
813
+ #pragma warning restore CS0612 // Type or member is obsolete
812
814
813
815
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
814
816
public Task ExposeBindingAsync ( string name , Action < BindingSource > callback )
You can’t perform that action at this time.
0 commit comments