Public in .Net too

This commit is contained in:
Yury Semikhatsky 2024-04-01 10:26:56 -07:00
parent 8ee98c3fa1
commit 7db5df8b40

View file

@ -64,7 +64,6 @@ await context.CloseAsync();
## event: BrowserContext.backgroundPage
* since: v1.11
* langs: js, python, java
- argument: <[Page]>
:::note
@ -92,6 +91,14 @@ background_page = await context.wait_for_event("backgroundpage")
background_page = context.wait_for_event("backgroundpage")
```
```csharp
var backgroundPage = await context.RunAndWaitForBackgoundPageAsync(async =>
{
await page.GetByText("activate extension").ClickAsync();
});
Console.WriteLine(await backgroundPage.EvaluateAsync<string>("location.href"));
```
## event: BrowserContext.close
* since: v1.8
- argument: <[BrowserContext]>
@ -448,7 +455,6 @@ Script to be evaluated in all pages in the browser context. Optional.
## method: BrowserContext.backgroundPages
* since: v1.11
* langs: js, python, java
- returns: <[Array]<[Page]>>
:::note