mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(dotnet): fixed broken code snippets which contained Java (#7260)
This commit is contained in:
parent
73a43fce60
commit
af18b31473
@ -126,7 +126,7 @@ await page.SetInputFilesAsync("input#upload", new FilePayload
|
||||
{
|
||||
Name = "file.txt",
|
||||
MimeType = "text/plain",
|
||||
Buffer = "this is a test".getBytes(StandardCharsets.UTF_8),
|
||||
Buffer = System.Text.Encoding.UTF8.GetBytes("this is a test"),
|
||||
});
|
||||
```
|
||||
|
||||
|
@ -713,7 +713,7 @@ await page.SetInputFilesAsync("input#upload", new FilePayload
|
||||
{
|
||||
Name = "file.txt",
|
||||
MimeType = "text/plain",
|
||||
Buffer = "this is a test".getBytes(StandardCharsets.UTF_8),
|
||||
Buffer = System.Text.Encoding.UTF8.GetBytes("this is a test"),
|
||||
});
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user