mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(dotnet): Improve some dotnet docs (#9265)
Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
083d882b2b
commit
ddbd64e4df
@ -6,7 +6,7 @@ BrowserContexts provide a way to operate multiple independent browser sessions.
|
||||
If a page opens another page, e.g. with a `window.open` call, the popup will belong to the parent page's browser
|
||||
context.
|
||||
|
||||
Playwright allows creation of "incognito" browser contexts with `browser.newContext()` method. "Incognito" browser
|
||||
Playwright allows creating "incognito" browser contexts with [`method: Browser.newContext`] method. "Incognito" browser
|
||||
contexts don't write any browsing data to disk.
|
||||
|
||||
```js
|
||||
|
||||
@ -183,7 +183,7 @@ assert html == "<p>Result</p>"
|
||||
|
||||
```csharp
|
||||
var html = await page.InnerHTMLAsync("div.result");
|
||||
Assert.Equals(html, "<p>Result</p>");
|
||||
Assert.Equals("<p>Result</p>", html);
|
||||
```
|
||||
|
||||
### API reference
|
||||
|
||||
@ -594,7 +594,7 @@ page.click('#free-month-promo >> text=Sign Up')
|
||||
|
||||
```csharp
|
||||
// Click an element with text "Sign Up" inside of a #free-month-promo.
|
||||
await page.Click("#free-month-promo >> text=Sign Up");
|
||||
await page.ClickAsync("#free-month-promo >> text=Sign Up");
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
5
types/types.d.ts
vendored
5
types/types.d.ts
vendored
@ -5813,8 +5813,9 @@ export interface Frame {
|
||||
* If a page opens another page, e.g. with a `window.open` call, the popup will belong to the parent page's browser
|
||||
* context.
|
||||
*
|
||||
* Playwright allows creation of "incognito" browser contexts with `browser.newContext()` method. "Incognito" browser
|
||||
* contexts don't write any browsing data to disk.
|
||||
* Playwright allows creating "incognito" browser contexts with
|
||||
* [browser.newContext([options])](https://playwright.dev/docs/api/class-browser#browser-new-context) method. "Incognito"
|
||||
* browser contexts don't write any browsing data to disk.
|
||||
*
|
||||
* ```js
|
||||
* // Create a new incognito browser context
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user