Skip to content

Commit

Permalink
feat(roll): roll to ToT Playwright (04-09-24)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 4, 2024
1 parent d6c535b commit 5ff6193
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 34 deletions.
4 changes: 2 additions & 2 deletions dotnet/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ Page.FrameByUrl(url);

### FrameLocator {#page-frame-locator}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17 regular [`Locator`] instead.</font><x-search>page.FrameLocator</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17</font><x-search>page.FrameLocator</x-search>

When working with iframes, you can create a frame locator that will enter the iframe and allow selecting elements in that iframe.

Expand All @@ -737,7 +737,7 @@ await locator.ClickAsync();
```

**Arguments**
- `selector` [string] <font size="2">Added in: v1.17</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-frame-locator-option-selector"/><a href="#page-frame-locator-option-selector" class="list-anchor">#</a>
- `selector` [string]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-frame-locator-option-selector"/><a href="#page-frame-locator-option-selector" class="list-anchor">#</a>

A selector to use when resolving DOM element.

Expand Down
4 changes: 2 additions & 2 deletions java/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ Page.frameByUrl(url);

### frameLocator {#page-frame-locator}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17 regular [`Locator`] instead.</font><x-search>page.frameLocator</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17</font><x-search>page.frameLocator</x-search>

When working with iframes, you can create a frame locator that will enter the iframe and allow selecting elements in that iframe.

Expand All @@ -738,7 +738,7 @@ locator.click();
```

**Arguments**
- `selector` [String] <font size="2">Added in: v1.17</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-frame-locator-option-selector"/><a href="#page-frame-locator-option-selector" class="list-anchor">#</a>
- `selector` [String]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-frame-locator-option-selector"/><a href="#page-frame-locator-option-selector" class="list-anchor">#</a>

A selector to use when resolving DOM element.

Expand Down
4 changes: 2 additions & 2 deletions nodejs/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ const frame = page.frame({ url: /.*domain.*/ });

### frameLocator {#page-frame-locator}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17 regular [`Locator`] instead.</font><x-search>page.frameLocator</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17</font><x-search>page.frameLocator</x-search>

When working with iframes, you can create a frame locator that will enter the iframe and allow selecting elements in that iframe.

Expand All @@ -720,7 +720,7 @@ await locator.click();
```

**Arguments**
- `selector` [string] <font size="2">Added in: v1.17</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-frame-locator-option-selector"/><a href="#page-frame-locator-option-selector" class="list-anchor">#</a>
- `selector` [string]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-frame-locator-option-selector"/><a href="#page-frame-locator-option-selector" class="list-anchor">#</a>

A selector to use when resolving DOM element.

Expand Down
49 changes: 23 additions & 26 deletions nodejs/docs/api/class-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,29 @@ await request.response();

---

### serviceWorker {#request-service-worker}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.24</font><x-search>request.serviceWorker</x-search>

The Service [Worker] that is performing the request.

**Usage**

```js
request.serviceWorker();
```

**Returns**
- [null] | [Worker]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="request-service-worker-return"/><a href="#request-service-worker-return" class="list-anchor">#</a>

**Details**

This method is Chromium only. It's safe to call when using other browsers, but it will always be `null`.

Requests originated in a Service Worker do not have a [request.frame()](/api/class-request.mdx#request-frame) available.

---

### sizes {#request-sizes}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.15</font><x-search>request.sizes</x-search>
Expand Down Expand Up @@ -424,32 +447,6 @@ request.url();
**Returns**
- [string]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="request-url-return"/><a href="#request-url-return" class="list-anchor">#</a>

---

## Deprecated

### serviceWorker {#request-service-worker}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.24</font><x-search>request.serviceWorker</x-search>

:::warning Deprecated

Requests made by a Service Worker are not reported in Playwright.

:::


This method will always return `null`.

**Usage**

```js
request.serviceWorker();
```

**Returns**
- [null] | [Worker]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="request-service-worker-return"/><a href="#request-service-worker-return" class="list-anchor">#</a>


[Accessibility]: /api/class-accessibility.mdx "Accessibility"
[Android]: /api/class-android.mdx "Android"
Expand Down
4 changes: 2 additions & 2 deletions python/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ frame = page.frame(url=r".*domain.*")

### frame_locator {#page-frame-locator}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17 regular [`Locator`] instead.</font><x-search>page.frame_locator</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17</font><x-search>page.frame_locator</x-search>

When working with iframes, you can create a frame locator that will enter the iframe and allow selecting elements in that iframe.

Expand Down Expand Up @@ -1533,7 +1533,7 @@ await locator.click()
</Tabs>

**Arguments**
- `selector` [str] <font size="2">Added in: v1.17</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-frame-locator-option-selector"/><a href="#page-frame-locator-option-selector" class="list-anchor">#</a>
- `selector` [str]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-frame-locator-option-selector"/><a href="#page-frame-locator-option-selector" class="list-anchor">#</a>

A selector to use when resolving DOM element.

Expand Down

0 comments on commit 5ff6193

Please sign in to comment.