diff --git a/docs/src/release-notes-python.md b/docs/src/release-notes-python.md index 7fb1fa3f18c6c..f49a6cb36f90b 100644 --- a/docs/src/release-notes-python.md +++ b/docs/src/release-notes-python.md @@ -11,7 +11,7 @@ toc_max_heading_level: 2 - New assertion [`method: LocatorAssertions.toBeInViewport`] ensures that locator points to an element that intersects viewport, according to the [intersection observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API). - ```python sync + ```python from playwright.sync_api import expect locator = page.get_by_role("button")