Skip to content

Commit

Permalink
docs: add 1.29 language port release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Dec 19, 2022
1 parent 53ef0d0 commit 8724072
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 1 deletion.
43 changes: 43 additions & 0 deletions docs/src/release-notes-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,49 @@ title: "Release notes"
toc_max_heading_level: 2
---

## Version 1.29

### New APIs

- New method [`method: Route.fetch`] and new option `Json` for [`method: Route.fulfill`]:

```csharp
await Page.RouteAsync("**/api/settings", async route => {
// Fetch original settings.
var response = await route.FetchAsync();

// Force settings theme to a predefined value.
var json = await response.JsonAsync();
json["theme"] = "Solorized";

// Fulfill with modified data.
await route.FulfillAsync(new RouteFulfillOptions {
Json = json
});
});
```

- New method [`method: Locator.all`] to iterate over all matching elements:

```csharp
// Check all checkboxes!
var checkboxes = await Page.LocatorAsync("role=checkbox");
foreach (var checkbox in await checkboxes.AllAsync())
await checkbox.CheckAsync();
```

### Browser Versions

* Chromium 109.0.5414.46
* Mozilla Firefox 107.0
* WebKit 16.4

This version was also tested against the following stable channels:

* Google Chrome 108
* Microsoft Edge 108


## Version 1.28

### Playwright Tools
Expand Down
24 changes: 24 additions & 0 deletions docs/src/release-notes-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@ title: "Release notes"
toc_max_heading_level: 2
---

## Version 1.29

### New APIs

- New method [`method: Locator.all`] to iterate over all matching elements:

```java
// Check all checkboxes!
const checkboxes = page.getByRole('checkbox');
for (Locator checkbox : checkboxes.all())
checkbox.check();
```

### Browser Versions

* Chromium 109.0.5414.46
* Mozilla Firefox 107.0
* WebKit 16.4

This version was also tested against the following stable channels:

* Google Chrome 108
* Microsoft Edge 108

## Version 1.28

### Playwright Tools
Expand Down
2 changes: 1 addition & 1 deletion docs/src/release-notes-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ toc_max_heading_level: 2

- Playwright Test now respects [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig).
- New options `args` and `proxy` for [`method: AndroidDevice.launchBrowser`].
- Option `postData` in method [`method: Route.continue`] now supports [serializable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description) values.
- Option `postData` in method [`method: Route.continue`] now supports [Serializable] values.

### Browser Versions

Expand Down
46 changes: 46 additions & 0 deletions docs/src/release-notes-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,52 @@ title: "Release notes"
toc_max_heading_level: 2
---

## Version 1.29

### New APIs

- New method [`method: Route.fetch`] and new option `json` for [`method: Route.fulfill`]:

```python
def handle_route(route: Route):
# Fetch original settings.
response = route.fetch()

# Force settings theme to a predefined value.
json = response.json()
json["theme"] = "Solorized"

# Fulfill with modified data.
route.fulfill(json=json)


page.route("**/api/settings", handle_route)
```

- New method [`method: Locator.all`] to iterate over all matching elements:

```python
# Check all checkboxes!
checkboxes = page.get_by_role("checkbox")
for checkbox in checkboxes.all():
checkbox.check()
```

### Miscellaneous

- Option `postData` in method [`method: Route.continue`] now supports [Serializable] values.

### Browser Versions

* Chromium 109.0.5414.46
* Mozilla Firefox 107.0
* WebKit 16.4

This version was also tested against the following stable channels:

* Google Chrome 108
* Microsoft Edge 108

## Version 1.28

### Playwright Tools
Expand Down

0 comments on commit 8724072

Please sign in to comment.