Skip to content

Commit 5332639

Browse files
committed
cherry-pick(#30263): docs: add v1.43 release notes for language ports
1 parent c729a7b commit 5332639

File tree

3 files changed

+134
-0
lines changed

3 files changed

+134
-0
lines changed

docs/src/release-notes-csharp.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,50 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.43
8+
9+
### New APIs
10+
11+
- Method [`method: BrowserContext.clearCookies`] now supports filters to remove only some cookies.
12+
13+
```csharp
14+
// Clear all cookies.
15+
await Context.ClearCookiesAsync();
16+
// New: clear cookies with a particular name.
17+
await Context.ClearCookiesAsync(new() { Name = "session-id" });
18+
// New: clear cookies for a particular domain.
19+
await Context.ClearCookiesAsync(new() { Domain = "my-origin.com" });
20+
```
21+
22+
- New property [`method: Locator.contentFrame`] converts a [Locator] object to a [FrameLocator]. This can be useful when you have a [Locator] object obtained somewhere, and later on would like to interact with the content inside the frame.
23+
24+
```csharp
25+
var locator = Page.Locator("iframe[name='embedded']");
26+
// ...
27+
var frameLocator = locator.ContentFrame;
28+
await frameLocator.GetByRole(AriaRole.Button).ClickAsync();
29+
```
30+
31+
- New property [`method: FrameLocator.owner`] converts a [FrameLocator] object to a [Locator]. This can be useful when you have a [FrameLocator] object obtained somewhere, and later on would like to interact with the `iframe` element.
32+
33+
```csharp
34+
var frameLocator = page.FrameLocator("iframe[name='embedded']");
35+
// ...
36+
var locator = frameLocator.Owner;
37+
await Expect(locator).ToBeVisibleAsync();
38+
```
39+
40+
### Browser Versions
41+
42+
* Chromium 124.0.6367.8
43+
* Mozilla Firefox 124.0
44+
* WebKit 17.4
45+
46+
This version was also tested against the following stable channels:
47+
48+
* Google Chrome 123
49+
* Microsoft Edge 123
50+
751
## Version 1.42
852

953
### New Locator Handler

docs/src/release-notes-java.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,50 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.43
8+
9+
### New APIs
10+
11+
- Method [`method: BrowserContext.clearCookies`] now supports filters to remove only some cookies.
12+
13+
```java
14+
// Clear all cookies.
15+
context.clearCookies();
16+
// New: clear cookies with a particular name.
17+
context.clearCookies(new BrowserContext.ClearCookiesOptions().setName("session-id"));
18+
// New: clear cookies for a particular domain.
19+
context.clearCookies(new BrowserContext.ClearCookiesOptions().setDomain("my-origin.com"));
20+
```
21+
22+
- New method [`method: Locator.contentFrame`] converts a [Locator] object to a [FrameLocator]. This can be useful when you have a [Locator] object obtained somewhere, and later on would like to interact with the content inside the frame.
23+
24+
```java
25+
Locator locator = page.locator("iframe[name='embedded']");
26+
// ...
27+
FrameLocator frameLocator = locator.contentFrame();
28+
frameLocator.getByRole(AriaRole.BUTTON).click();
29+
```
30+
31+
- New method [`method: FrameLocator.owner`] converts a [FrameLocator] object to a [Locator]. This can be useful when you have a [FrameLocator] object obtained somewhere, and later on would like to interact with the `iframe` element.
32+
33+
```java
34+
FrameLocator frameLocator = page.frameLocator("iframe[name='embedded']");
35+
// ...
36+
Locator locator = frameLocator.owner();
37+
assertThat(locator).isVisible();
38+
```
39+
40+
### Browser Versions
41+
42+
* Chromium 124.0.6367.8
43+
* Mozilla Firefox 124.0
44+
* WebKit 17.4
45+
46+
This version was also tested against the following stable channels:
47+
48+
* Google Chrome 123
49+
* Microsoft Edge 123
50+
751
## Version 1.42
852

953
### Experimental JUnit integration

docs/src/release-notes-python.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,52 @@ title: "Release notes"
44
toc_max_heading_level: 2
55
---
66

7+
## Version 1.43
8+
9+
### New APIs
10+
11+
- Method [`method: BrowserContext.clearCookies`] now supports filters to remove only some cookies.
12+
13+
```python
14+
# Clear all cookies.
15+
context.clear_cookies()
16+
# New: clear cookies with a particular name.
17+
context.clear_cookies(name="session-id")
18+
# New: clear cookies for a particular domain.
19+
context.clear_cookies(domain="my-origin.com")
20+
```
21+
22+
- New method [`method: Locator.contentFrame`] converts a [Locator] object to a [FrameLocator]. This can be useful when you have a [Locator] object obtained somewhere, and later on would like to interact with the content inside the frame.
23+
24+
```python
25+
locator = page.locator("iframe[name='embedded']")
26+
# ...
27+
frame_locator = locator.content_frame
28+
frame_locator.getByRole("button").click()
29+
```
30+
31+
- New method [`method: FrameLocator.owner`] converts a [FrameLocator] object to a [Locator]. This can be useful when you have a [FrameLocator] object obtained somewhere, and later on would like to interact with the `iframe` element.
32+
33+
```python
34+
frame_locator = page.frame_locator("iframe[name='embedded']")
35+
# ...
36+
locator = frame_locator.owner
37+
expect(locator).to_be_visible()
38+
```
39+
40+
- Conda builds are now published for macOS-arm64 and Linux-arm64.
41+
42+
### Browser Versions
43+
44+
* Chromium 124.0.6367.8
45+
* Mozilla Firefox 124.0
46+
* WebKit 17.4
47+
48+
This version was also tested against the following stable channels:
49+
50+
* Google Chrome 123
51+
* Microsoft Edge 123
52+
753
## Version 1.42
854

955
### New Locator Handler

0 commit comments

Comments
 (0)