mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(dotnet): csharp mouse example (#5717)
This commit is contained in:
parent
2af8b8ac74
commit
2e4f645488
@ -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`].
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user