Skip to content

Commit b741fb3

Browse files
authored
Make ElementHandle.ClickablePointAsync public (#1985)
1 parent 8b3aa8b commit b741fb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/PuppeteerSharp/ElementHandle.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,11 @@ public async Task DragAndDropAsync(ElementHandle target, int delay = 0)
634634
await Page.Mouse.DragAndDropAsync(x, y, targetPoint.X, targetPoint.Y, delay).ConfigureAwait(false);
635635
}
636636

637-
private async Task<(decimal X, decimal Y)> ClickablePointAsync()
637+
/// <summary>
638+
/// Gets a clickable point for the current element (currently the mid point).
639+
/// </summary>
640+
/// <returns>Task that resolves to the x, y point that describes the element's position.</returns>
641+
public async Task<(decimal X, decimal Y)> ClickablePointAsync()
638642
{
639643
GetContentQuadsResponse result = null;
640644

0 commit comments

Comments
 (0)