docs(dotnet): csharp mouse example (#5717)

This commit is contained in:
Anže Vodovnik 2021-03-04 19:03:51 +01:00 committed by GitHub
parent 2af8b8ac74
commit 2e4f645488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,15 @@ page.mouse.move(0, 0)
page.mouse.up()
```
```csharp
await Page.Mouse.MoveAsync(0, 0);
await Page.Mouse.DownAsync();
await Page.Mouse.MoveAsync(0, 100);
await Page.Mouse.MoveAsync(100, 100);
await Page.Mouse.MoveAsync(100, 0);
await Page.Mouse.MoveAsync(0, 0);
await Page.Mouse.UpAsync();
```
## async method: Mouse.click
Shortcut for [`method: Mouse.move`], [`method: Mouse.down`], [`method: Mouse.up`].