docs(dotnet): wrong AddInitScriptAsync snippet (#18893)
Fixes https://github.com/microsoft/playwright-dotnet/issues/2399
This commit is contained in:
parent
3ed9dab1c9
commit
c2e3704f86
|
|
@ -601,7 +601,7 @@ page.add_init_script(path="./preload.js")
|
||||||
```
|
```
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
await page.AddInitScriptAsync(new PageAddInitScriptOption { ScriptPath = "./preload.js" });
|
await page.AddInitScriptAsync("./preload.js");
|
||||||
```
|
```
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue