Skip to content

Commit 2e57a78

Browse files
authored
chore: add release notes for v1.53 (#36196)
1 parent 6dc6651 commit 2e57a78

File tree

7 files changed

+151
-0
lines changed

7 files changed

+151
-0
lines changed

docs/src/api/class-locator.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,33 @@ When all steps combined have not finished during the specified [`option: timeout
587587
Describes the locator, description is used in the trace viewer and reports.
588588
Returns the locator pointing to the same element.
589589

590+
**Usage**
591+
592+
```js
593+
const button = page.getByTestId('btn-sub').describe('Subscribe button');
594+
await button.click();
595+
```
596+
597+
```java
598+
Locator button = page.getByTestId("btn-sub").describe("Subscribe button");
599+
button.click();
600+
```
601+
602+
```python async
603+
button = page.get_by_test_id("btn-sub").describe("Subscribe button")
604+
await button.click()
605+
```
606+
607+
```python sync
608+
button = page.get_by_test_id("btn-sub").describe("Subscribe button")
609+
button.click()
610+
```
611+
612+
```csharp
613+
var button = Page.GetByTestId("btn-sub").Describe("Subscribe button");
614+
await button.ClickAsync();
615+
```
616+
590617
### param: Locator.describe.description
591618
* since: v1.53
592619
- `description` <[string]>

docs/src/release-notes-csharp.md

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

7+
## Version 1.53
8+
9+
### Miscellaneous
10+
11+
- New Steps in Trace Viewer:
12+
![New Trace Viewer Steps](https://github.com/user-attachments/assets/1963ff7d-4070-41be-a79b-4333176921a2)
13+
- New method [`method: Locator.describe`] to describe a locator. Used for trace viewer.
14+
```csharp
15+
var button = Page.GetByTestId("btn-sub").Describe("Subscribe button");
16+
await button.ClickAsync();
17+
```
18+
- `pwsh bin/Debug/netX/playwright.ps1 install --list` will now list all installed browsers, versions and locations.
19+
20+
### Browser Versions
21+
22+
- Chromium 138.0.7204.4
23+
- Mozilla Firefox 139.0
24+
- WebKit 18.5
25+
26+
This version was also tested against the following stable channels:
27+
28+
- Google Chrome 137
29+
- Microsoft Edge 137
30+
731
## Version 1.52
832

933
### Highlights

docs/src/release-notes-java.md

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

7+
## Version 1.53
8+
9+
### Miscellaneous
10+
11+
- New Steps in Trace Viewer:
12+
![New Trace Viewer Steps](https://github.com/user-attachments/assets/1963ff7d-4070-41be-a79b-4333176921a2)
13+
- New method [`method: Locator.describe`] to describe a locator. Used for trace viewer.
14+
```java
15+
Locator button = page.getByTestId("btn-sub").describe("Subscribe button");
16+
button.click();
17+
```
18+
- `mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --list"` will now list all installed browsers, versions and locations.
19+
20+
### Browser Versions
21+
22+
- Chromium 138.0.7204.4
23+
- Mozilla Firefox 139.0
24+
- WebKit 18.5
25+
26+
This version was also tested against the following stable channels:
27+
28+
- Google Chrome 137
29+
- Microsoft Edge 137
30+
731
## Version 1.52
832

933
### Highlights

docs/src/release-notes-js.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,42 @@ toc_max_heading_level: 2
66

77
import LiteYouTube from '@site/src/components/LiteYouTube';
88

9+
## Version 1.53
10+
11+
### Trace Viewer and HTML Reporter Updates
12+
13+
- New Steps in Trace Viewer and HTML reporter:
14+
![New Trace Viewer Steps](https://github.com/user-attachments/assets/1963ff7d-4070-41be-a79b-4333176921a2)
15+
- New option in `'html'` reporter to set the title of a specific test run:
16+
```js
17+
import { defineConfig } from '@playwright/test';
18+
19+
export default defineConfig({
20+
reporter: [['html', { title: 'Custom test run #1028' }]]
21+
});
22+
```
23+
24+
### Miscellaneous
25+
26+
- New option [`option: TestInfo.snapshotPath.kind`] in [`method: TestInfo.snapshotPath`] controls which snapshot path template is used.
27+
- New method [`method: Locator.describe`] to describe a locator. Used for trace viewer and reports.
28+
```js
29+
const button = page.getByTestId('btn-sub').describe('Subscribe button');
30+
await button.click();
31+
```
32+
- `npx playwright install --list` will now list all installed browsers, versions and locations.
33+
34+
### Browser Versions
35+
36+
- Chromium 138.0.7204.4
37+
- Mozilla Firefox 139.0
38+
- WebKit 18.5
39+
40+
This version was also tested against the following stable channels:
41+
42+
- Google Chrome 137
43+
- Microsoft Edge 137
44+
945
## Version 1.52
1046

1147
### Highlights

docs/src/release-notes-python.md

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

7+
## Version 1.53
8+
9+
### Miscellaneous
10+
11+
- New Steps in Trace Viewer:
12+
![New Trace Viewer Steps](https://github.com/user-attachments/assets/1963ff7d-4070-41be-a79b-4333176921a2)
13+
- New method [`method: Locator.describe`] to describe a locator. Used for trace viewer.
14+
```python
15+
button = page.get_by_test_id("btn-sub").describe("Subscribe button")
16+
button.click()
17+
```
18+
- `python -m playwright install --list` will now list all installed browsers, versions and locations.
19+
20+
### Browser Versions
21+
22+
- Chromium 138.0.7204.4
23+
- Mozilla Firefox 139.0
24+
- WebKit 18.5
25+
26+
This version was also tested against the following stable channels:
27+
28+
- Google Chrome 137
29+
- Microsoft Edge 137
30+
731
## Version 1.52
832

933
### Highlights

packages/playwright-client/types/types.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12913,6 +12913,14 @@ export interface Locator {
1291312913
/**
1291412914
* Describes the locator, description is used in the trace viewer and reports. Returns the locator pointing to the
1291512915
* same element.
12916+
*
12917+
* **Usage**
12918+
*
12919+
* ```js
12920+
* const button = page.getByTestId('btn-sub').describe('Subscribe button');
12921+
* await button.click();
12922+
* ```
12923+
*
1291612924
* @param description Locator description.
1291712925
*/
1291812926
describe(description: string): Locator;

packages/playwright-core/types/types.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12913,6 +12913,14 @@ export interface Locator {
1291312913
/**
1291412914
* Describes the locator, description is used in the trace viewer and reports. Returns the locator pointing to the
1291512915
* same element.
12916+
*
12917+
* **Usage**
12918+
*
12919+
* ```js
12920+
* const button = page.getByTestId('btn-sub').describe('Subscribe button');
12921+
* await button.click();
12922+
* ```
12923+
*
1291612924
* @param description Locator description.
1291712925
*/
1291812926
describe(description: string): Locator;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy