Skip to content

Commit

Permalink
chore: render since version (microsoft#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored Jul 6, 2022
1 parent afa630b commit decd0d1
Show file tree
Hide file tree
Showing 155 changed files with 7,273 additions and 758 deletions.
3 changes: 3 additions & 0 deletions dotnet/docs/api/class-accessibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Most of the accessibility tree gets filtered out when converting from internal b
- [Accessibility.SnapshotAsync(options)](./api/class-accessibility.mdx#accessibility-snapshot)

## Accessibility.SnapshotAsync(options) {#accessibility-snapshot}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.8</font>

- `options` &#60;`AccessibilitySnapshotOptions?`&#62;
- `InterestingOnly`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="accessibility-snapshot-option-interesting-only"/> &#60;[bool]?&#62; Prune uninteresting nodes from the tree. Defaults to `true`.<a href="#accessibility-snapshot-option-interesting-only" class="list-anchor">#</a>
- `Root`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="accessibility-snapshot-option-root"/> &#60;[ElementHandle]?&#62; The root DOM element for the snapshot. Defaults to the whole page.<a href="#accessibility-snapshot-option-root" class="list-anchor">#</a>
Expand Down
5 changes: 4 additions & 1 deletion dotnet/docs/api/class-apirequest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Exposes API that can be used for the Web API testing. This class is used for cre
- [ApiRequest.NewContextAsync(options)](./api/class-apirequest.mdx#api-request-new-context)

## ApiRequest.NewContextAsync(options) {#api-request-new-context}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.16</font>

- `options` &#60;`ApiRequestNewContextOptions?`&#62;
- `BaseURL`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="api-request-new-context-option-base-url"/> &#60;[string]?&#62; Methods like [ApiRequestContext.GetAsync(url, options)](./api/class-apirequestcontext.mdx#api-request-context-get) take the base URL into consideration by using the [`URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) constructor for building the corresponding URL. Examples:<a href="#api-request-new-context-option-base-url" class="list-anchor">#</a>
* baseURL: `http://localhost:3000` and sending request to `/bar.html` results in `http://localhost:3000/bar.html`
Expand All @@ -27,7 +30,7 @@ Exposes API that can be used for the Web API testing. This class is used for cre
- `Username` &#60;[string]?&#62; Optional username to use if HTTP proxy requires authentication.
- `Password` &#60;[string]?&#62; Optional password to use if HTTP proxy requires authentication.
- `StorageState`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="api-request-new-context-option-storage-state"/> &#60;[string]?&#62; Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [BrowserContext.StorageStateAsync(options)](./api/class-browsercontext.mdx#browser-context-storage-state) or [ApiRequestContext.StorageStateAsync(options)](./api/class-apirequestcontext.mdx#api-request-context-storage-state). Either a path to the file with saved storage, or the value returned by one of [BrowserContext.StorageStateAsync(options)](./api/class-browsercontext.mdx#browser-context-storage-state) or [ApiRequestContext.StorageStateAsync(options)](./api/class-apirequestcontext.mdx#api-request-context-storage-state) methods.<a href="#api-request-new-context-option-storage-state" class="list-anchor">#</a>
- `StorageStatePath`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="api-request-new-context-option-storage-state-path"/> &#60;[string]?&#62; Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [BrowserContext.StorageStateAsync(options)](./api/class-browsercontext.mdx#browser-context-storage-state). Path to the file with saved storage state.<a href="#api-request-new-context-option-storage-state-path" class="list-anchor">#</a>
- `StorageStatePath`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="api-request-new-context-option-storage-state-path"/> &#60;[string]?&#62; Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via [BrowserContext.StorageStateAsync(options)](./api/class-browsercontext.mdx#browser-context-storage-state). Path to the file with saved storage state. <font size="2">Added in: v1.18</font><a href="#api-request-new-context-option-storage-state-path" class="list-anchor">#</a>
- `Timeout`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="api-request-new-context-option-timeout"/> &#60;[double]?&#62; Maximum time in milliseconds to wait for the response. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.<a href="#api-request-new-context-option-timeout" class="list-anchor">#</a>
- `UserAgent`<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="api-request-new-context-option-user-agent"/> &#60;[string]?&#62; Specific user agent to use in this context.<a href="#api-request-new-context-option-user-agent" class="list-anchor">#</a>
- returns:<a aria-hidden="true" tabindex="-1" class="list-anchor-link" id="api-request-new-context-return"/> &#60;[APIRequestContext]&#62;<a href="#api-request-new-context-return" class="list-anchor">#</a>
Expand Down
Loading

0 comments on commit decd0d1

Please sign in to comment.