Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(roll): roll to ToT Playwright (roll/27-08-24) #1483

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions dotnet/docs/api/class-browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -578,26 +578,6 @@ await Browser.NewPageAsync(options);

---

### RemoveAllListenersAsync {#browser-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```csharp
await Browser.RemoveAllListenersAsync(type);
```

**Arguments**
- `type` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-remove-all-listeners-option-type"/><a href="#browser-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-remove-all-listeners-return"/><a href="#browser-remove-all-listeners-return" class="list-anchor">#</a>

---

### Version {#browser-version}

<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>browser.Version</x-search>
Expand Down
22 changes: 1 addition & 21 deletions dotnet/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 creating "incognito" browser contexts with [Browser.NewContextAsync()](/api/class-browser.mdx#browser-new-context) method. "Incognito" browser contexts don't write any browsing data to disk.
Playwright allows creating isolated non-persistent browser contexts with [Browser.NewContextAsync()](/api/class-browser.mdx#browser-new-context) method. Non-persistent browser contexts don't write any browsing data to disk.

```csharp
using var playwright = await Playwright.CreateAsync();
Expand Down Expand Up @@ -516,26 +516,6 @@ BrowserContext.Pages

---

### RemoveAllListenersAsync {#browser-context-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```csharp
await BrowserContext.RemoveAllListenersAsync(type);
```

**Arguments**
- `type` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-remove-all-listeners-option-type"/><a href="#browser-context-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-remove-all-listeners-return"/><a href="#browser-context-remove-all-listeners-return" class="list-anchor">#</a>

---

### RouteAsync {#browser-context-route}

<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>browserContext.RouteAsync</x-search>
Expand Down
24 changes: 2 additions & 22 deletions dotnet/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ Page.FrameByUrl(url);

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

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17</font><x-search>page.FrameLocator</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17 regular [`Locator`] instead.</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 @@ -755,7 +755,7 @@ await locator.ClickAsync();
```

**Arguments**
- `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>
- `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>

A selector to use when resolving DOM element.

Expand Down Expand Up @@ -1496,26 +1496,6 @@ await Page.ReloadAsync(options);

---

### RemoveAllListenersAsync {#page-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```csharp
await Page.RemoveAllListenersAsync(type);
```

**Arguments**
- `type` [string]? *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-remove-all-listeners-option-type"/><a href="#page-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-remove-all-listeners-return"/><a href="#page-remove-all-listeners-return" class="list-anchor">#</a>

---

### RemoveLocatorHandlerAsync {#page-remove-locator-handler}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.44</font><x-search>page.RemoveLocatorHandlerAsync</x-search>
Expand Down
21 changes: 0 additions & 21 deletions java/docs/api/class-browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -583,27 +583,6 @@ Browser.newPage(options);

---

### removeAllListeners {#browser-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```java
Browser.removeAllListeners();
Browser.removeAllListeners(type);
```

**Arguments**
- `type` [String] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-remove-all-listeners-option-type"/><a href="#browser-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-remove-all-listeners-return"/><a href="#browser-remove-all-listeners-return" class="list-anchor">#</a>

---

### startTracing {#browser-start-tracing}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.11</font><x-search>browser.startTracing</x-search>
Expand Down
23 changes: 1 addition & 22 deletions java/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 creating "incognito" browser contexts with [Browser.newContext()](/api/class-browser.mdx#browser-new-context) method. "Incognito" browser contexts don't write any browsing data to disk.
Playwright allows creating isolated non-persistent browser contexts with [Browser.newContext()](/api/class-browser.mdx#browser-new-context) method. Non-persistent browser contexts don't write any browsing data to disk.

```java
// Create a new incognito browser context
Expand Down Expand Up @@ -526,27 +526,6 @@ BrowserContext.pages();

---

### removeAllListeners {#browser-context-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```java
BrowserContext.removeAllListeners();
BrowserContext.removeAllListeners(type);
```

**Arguments**
- `type` [String] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-remove-all-listeners-option-type"/><a href="#browser-context-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-remove-all-listeners-return"/><a href="#browser-context-remove-all-listeners-return" class="list-anchor">#</a>

---

### route {#browser-context-route}

<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>browserContext.route</x-search>
Expand Down
25 changes: 2 additions & 23 deletions java/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Page.frameByUrl(url);

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

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17</font><x-search>page.frameLocator</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17 regular [`Locator`] instead.</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 @@ -756,7 +756,7 @@ locator.click();
```

**Arguments**
- `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>
- `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>

A selector to use when resolving DOM element.

Expand Down Expand Up @@ -1550,27 +1550,6 @@ Page.reload(options);

---

### removeAllListeners {#page-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```java
Page.removeAllListeners();
Page.removeAllListeners(type);
```

**Arguments**
- `type` [String] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-remove-all-listeners-option-type"/><a href="#page-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-remove-all-listeners-return"/><a href="#page-remove-all-listeners-return" class="list-anchor">#</a>

---

### removeLocatorHandler {#page-remove-locator-handler}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.44</font><x-search>page.removeLocatorHandler</x-search>
Expand Down
2 changes: 1 addition & 1 deletion nodejs/docs/api/class-browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ await browser.newPage(options);

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.
Removes all the listeners of the given type (or all registered listeners if no type given). Allows to wait for async listeners to complete or to ignore subsequent errors from these listeners.

**Usage**

Expand Down
4 changes: 2 additions & 2 deletions nodejs/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 creating "incognito" browser contexts with [browser.newContext()](/api/class-browser.mdx#browser-new-context) method. "Incognito" browser contexts don't write any browsing data to disk.
Playwright allows creating isolated non-persistent browser contexts with [browser.newContext()](/api/class-browser.mdx#browser-new-context) method. Non-persistent browser contexts don't write any browsing data to disk.

```js
// Create a new incognito browser context
Expand Down Expand Up @@ -536,7 +536,7 @@ browserContext.pages();

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.
Removes all the listeners of the given type (or all registered listeners if no type given). Allows to wait for async listeners to complete or to ignore subsequent errors from these listeners.

**Usage**

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

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

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17</font><x-search>page.frameLocator</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17 regular [`Locator`] instead.</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 @@ -751,7 +751,7 @@ await locator.click();
```

**Arguments**
- `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>
- `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>

A selector to use when resolving DOM element.

Expand Down Expand Up @@ -1504,13 +1504,19 @@ await page.reload(options);

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.
Removes all the listeners of the given type (or all registered listeners if no type given). Allows to wait for async listeners to complete or to ignore subsequent errors from these listeners.

**Usage**

```js
await page.removeAllListeners();
await page.removeAllListeners(type, options);
page.on('request', async request => {
const response = await request.response();
const body = await response.body();
console.log(body.byteLength);
});
await page.goto('https://playwright.dev', { waitUntil: 'domcontentloaded' });
// Waits for all the reported 'request' events to resolve.
await page.removeAllListeners('request', { behavior: 'wait' });
```

**Arguments**
Expand Down
21 changes: 0 additions & 21 deletions python/docs/api/class-browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -662,27 +662,6 @@ browser.new_page(**kwargs)

---

### remove_all_listeners {#browser-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```python
browser.remove_all_listeners()
browser.remove_all_listeners(**kwargs)
```

**Arguments**
- `type` [str] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-remove-all-listeners-option-type"/><a href="#browser-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-remove-all-listeners-return"/><a href="#browser-remove-all-listeners-return" class="list-anchor">#</a>

---

### start_tracing {#browser-start-tracing}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.11</font><x-search>browser.start_tracing</x-search>
Expand Down
23 changes: 1 addition & 22 deletions python/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 creating "incognito" browser contexts with [browser.new_context()](/api/class-browser.mdx#browser-new-context) method. "Incognito" browser contexts don't write any browsing data to disk.
Playwright allows creating isolated non-persistent browser contexts with [browser.new_context()](/api/class-browser.mdx#browser-new-context) method. Non-persistent browser contexts don't write any browsing data to disk.

<Tabs
groupId="python-flavor"
Expand Down Expand Up @@ -772,27 +772,6 @@ browser_context.new_page()

---

### remove_all_listeners {#browser-context-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```python
browser_context.remove_all_listeners()
browser_context.remove_all_listeners(**kwargs)
```

**Arguments**
- `type` [str] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-remove-all-listeners-option-type"/><a href="#browser-context-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-remove-all-listeners-return"/><a href="#browser-context-remove-all-listeners-return" class="list-anchor">#</a>

---

### route {#browser-context-route}

<font size="2" style={{position: "relative", top: "-20px"}}>Added before v1.9</font><x-search>browserContext.route</x-search>
Expand Down
25 changes: 2 additions & 23 deletions python/docs/api/class-page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ frame = page.frame(url=r".*domain.*")

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

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17</font><x-search>page.frame_locator</x-search>
<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.17 regular [`Locator`] instead.</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 @@ -1551,7 +1551,7 @@ await locator.click()
</Tabs>

**Arguments**
- `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>
- `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>

A selector to use when resolving DOM element.

Expand Down Expand Up @@ -2404,27 +2404,6 @@ page.reload(**kwargs)

---

### remove_all_listeners {#page-remove-all-listeners}

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

Removes all the listeners of the given type if the type is given. Otherwise removes all the listeners.

**Usage**

```python
page.remove_all_listeners()
page.remove_all_listeners(**kwargs)
```

**Arguments**
- `type` [str] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-remove-all-listeners-option-type"/><a href="#page-remove-all-listeners-option-type" class="list-anchor">#</a>

**Returns**
- [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="page-remove-all-listeners-return"/><a href="#page-remove-all-listeners-return" class="list-anchor">#</a>

---

### remove_locator_handler {#page-remove-locator-handler}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.44</font><x-search>page.remove_locator_handler</x-search>
Expand Down
Loading