File tree Expand file tree Collapse file tree 7 files changed +151
-0
lines changed Expand file tree Collapse file tree 7 files changed +151
-0
lines changed Original file line number Diff line number Diff line change @@ -587,6 +587,33 @@ When all steps combined have not finished during the specified [`option: timeout
587
587
Describes the locator, description is used in the trace viewer and reports.
588
588
Returns the locator pointing to the same element.
589
589
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
+
590
617
# ## param: Locator.describe.description
591
618
* since: v1.53
592
619
- ` description` <[string]>
Original file line number Diff line number Diff line change @@ -4,6 +4,30 @@ title: "Release notes"
4
4
toc_max_heading_level : 2
5
5
---
6
6
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
+
7
31
## Version 1.52
8
32
9
33
### Highlights
Original file line number Diff line number Diff line change @@ -4,6 +4,30 @@ title: "Release notes"
4
4
toc_max_heading_level : 2
5
5
---
6
6
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
+
7
31
## Version 1.52
8
32
9
33
### Highlights
Original file line number Diff line number Diff line change @@ -6,6 +6,42 @@ toc_max_heading_level: 2
6
6
7
7
import LiteYouTube from '@site/src /components/LiteYouTube';
8
8
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
+
9
45
## Version 1.52
10
46
11
47
### Highlights
Original file line number Diff line number Diff line change @@ -4,6 +4,30 @@ title: "Release notes"
4
4
toc_max_heading_level : 2
5
5
---
6
6
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
+
7
31
## Version 1.52
8
32
9
33
### Highlights
Original file line number Diff line number Diff line change @@ -12913,6 +12913,14 @@ export interface Locator {
12913
12913
/**
12914
12914
* Describes the locator, description is used in the trace viewer and reports. Returns the locator pointing to the
12915
12915
* same element.
12916
+ *
12917
+ * **Usage**
12918
+ *
12919
+ * ```js
12920
+ * const button = page.getByTestId('btn-sub').describe('Subscribe button');
12921
+ * await button.click();
12922
+ * ```
12923
+ *
12916
12924
* @param description Locator description.
12917
12925
*/
12918
12926
describe(description: string): Locator;
Original file line number Diff line number Diff line change @@ -12913,6 +12913,14 @@ export interface Locator {
12913
12913
/**
12914
12914
* Describes the locator, description is used in the trace viewer and reports. Returns the locator pointing to the
12915
12915
* same element.
12916
+ *
12917
+ * **Usage**
12918
+ *
12919
+ * ```js
12920
+ * const button = page.getByTestId('btn-sub').describe('Subscribe button');
12921
+ * await button.click();
12922
+ * ```
12923
+ *
12916
12924
* @param description Locator description.
12917
12925
*/
12918
12926
describe(description: string): Locator;
You can’t perform that action at this time.
0 commit comments