You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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.
- 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.
- 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.
- 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.
Copy file name to clipboardExpand all lines: docs/src/release-notes-python.md
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,52 @@ title: "Release notes"
4
4
toc_max_heading_level: 2
5
5
---
6
6
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.
0 commit comments