playwright-cucumber-ts-steps 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +358 -671
  2. package/dist/backend/actions/click.d.ts +29 -29
  3. package/dist/backend/actions/click.js +29 -29
  4. package/dist/backend/actions/form.d.ts +2 -2
  5. package/dist/backend/actions/form.js +2 -2
  6. package/dist/backend/actions/formTable.d.ts +1 -1
  7. package/dist/backend/actions/formTable.js +1 -1
  8. package/dist/backend/actions/frames.d.ts +3 -3
  9. package/dist/backend/actions/frames.js +3 -3
  10. package/dist/backend/actions/inputs.d.ts +14 -14
  11. package/dist/backend/actions/inputs.js +14 -14
  12. package/dist/backend/actions/interactions.d.ts +7 -7
  13. package/dist/backend/actions/interactions.js +7 -7
  14. package/dist/backend/actions/keyboard.d.ts +6 -6
  15. package/dist/backend/actions/keyboard.js +6 -6
  16. package/dist/backend/actions/misc.d.ts +15 -15
  17. package/dist/backend/actions/misc.js +15 -15
  18. package/dist/backend/actions/mobile.d.ts +7 -7
  19. package/dist/backend/actions/mobile.js +7 -7
  20. package/dist/backend/actions/mouse.d.ts +9 -9
  21. package/dist/backend/actions/mouse.js +9 -9
  22. package/dist/backend/actions/navigation.d.ts +5 -5
  23. package/dist/backend/actions/navigation.js +5 -5
  24. package/dist/backend/actions/visual.d.ts +6 -6
  25. package/dist/backend/actions/visual.js +6 -6
  26. package/dist/backend/actions/waits.d.ts +6 -6
  27. package/dist/backend/actions/waits.js +6 -6
  28. package/dist/backend/api/assertions.d.ts +64 -4
  29. package/dist/backend/api/assertions.d.ts.map +1 -1
  30. package/dist/backend/api/assertions.js +205 -5
  31. package/dist/backend/api/mock.d.ts +3 -3
  32. package/dist/backend/api/mock.js +3 -3
  33. package/dist/backend/api/network.d.ts +6 -6
  34. package/dist/backend/api/network.js +6 -6
  35. package/dist/backend/api/requests.d.ts +4 -4
  36. package/dist/backend/api/requests.js +4 -4
  37. package/dist/backend/assertions/document.d.ts +10 -10
  38. package/dist/backend/assertions/document.js +10 -10
  39. package/dist/backend/assertions/elements.d.ts +28 -28
  40. package/dist/backend/assertions/elements.js +28 -28
  41. package/dist/backend/assertions/expectVisible.d.ts +1 -1
  42. package/dist/backend/assertions/expectVisible.js +1 -1
  43. package/dist/backend/assertions/forms.d.ts +7 -7
  44. package/dist/backend/assertions/forms.js +7 -7
  45. package/dist/backend/assertions/pageState.d.ts +4 -4
  46. package/dist/backend/assertions/pageState.js +4 -4
  47. package/dist/backend/assertions/storage.d.ts +11 -11
  48. package/dist/backend/assertions/storage.js +11 -11
  49. package/dist/backend/assertions/text.d.ts +17 -17
  50. package/dist/backend/assertions/text.js +17 -17
  51. package/dist/backend/assertions/visibility.d.ts +15 -15
  52. package/dist/backend/assertions/visibility.js +15 -15
  53. package/dist/backend/auth/index.d.ts +2 -2
  54. package/dist/backend/auth/index.js +2 -2
  55. package/dist/backend/db/steps.d.ts +9 -9
  56. package/dist/backend/db/steps.js +9 -9
  57. package/dist/backend/elements/alerts.d.ts +3 -3
  58. package/dist/backend/elements/alerts.js +3 -3
  59. package/dist/backend/elements/find.d.ts +15 -15
  60. package/dist/backend/elements/find.js +15 -15
  61. package/dist/backend/elements/forms.d.ts +4 -4
  62. package/dist/backend/elements/forms.js +4 -4
  63. package/dist/backend/elements/frames.d.ts +3 -3
  64. package/dist/backend/elements/frames.js +3 -3
  65. package/dist/backend/utils/faker.d.ts +2 -0
  66. package/dist/backend/utils/faker.d.ts.map +1 -0
  67. package/dist/backend/utils/faker.js +510 -0
  68. package/dist/backend/utils/fixtures.d.ts +44 -2
  69. package/dist/backend/utils/fixtures.d.ts.map +1 -1
  70. package/dist/backend/utils/fixtures.js +321 -5
  71. package/dist/backend/utils/resolver.d.ts +13 -0
  72. package/dist/backend/utils/resolver.d.ts.map +1 -1
  73. package/dist/backend/utils/resolver.js +55 -0
  74. package/dist/core/runner.d.ts +1 -0
  75. package/dist/core/runner.d.ts.map +1 -1
  76. package/dist/core/runner.js +1 -0
  77. package/dist/index.d.ts +1 -0
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +4 -1
  80. package/dist/metadata.json +49 -1
  81. package/package.json +4 -2
@@ -2,7 +2,7 @@
2
2
  * Clicks on the currently stored (active) element.
3
3
  * @param page - The Playwright page object
4
4
  * @param table - Optional table data for click options
5
- * @example When I click
5
+ * @example When I pw click
6
6
  */
7
7
  export declare function clickStoredElement(page: any, table?: any): Promise<void>;
8
8
  /**
@@ -11,8 +11,8 @@ export declare function clickStoredElement(page: any, table?: any): Promise<void
11
11
  * @param page - The Playwright page object
12
12
  * @param selectorKey - The selector key (can be a fixture key or raw CSS/XPath selector)
13
13
  * @param table - Optional table data for click options
14
- * @example When I click on element ".my-element"
15
- * When I click on element "login.submitButton"
14
+ * @example When I pw click on element ".my-element"
15
+ * When I pw click on element "login.submitButton"
16
16
  */
17
17
  export declare function clickElementBySelector(page: any, selectorKey: string, table?: any): Promise<void>;
18
18
  /**
@@ -20,12 +20,12 @@ export declare function clickElementBySelector(page: any, selectorKey: string, t
20
20
  * @param page - The Playwright page object
21
21
  * @param label - The button label text
22
22
  * @param table - Optional table data for click options
23
- * @example When I click on button "Submit"
23
+ * @example When I pw click on button "Submit"
24
24
  */
25
25
  export declare function clickButtonByLabel(page: any, label: string, table?: any): Promise<void>;
26
26
  /**
27
27
  * Clicks on a button role element with the EXACT specified text.
28
- * @example When I click on exact button text "Submit"
28
+ * @example When I pw click on exact button text "Submit"
29
29
  */
30
30
  export declare function clickButtonByExactText(page: any, exactText: string, table?: any): Promise<void>;
31
31
  /**
@@ -33,7 +33,7 @@ export declare function clickButtonByExactText(page: any, exactText: string, tab
33
33
  * @param page - The Playwright page object
34
34
  * @param text - The link text
35
35
  * @param table - Optional table data for click options
36
- * @example When I click on link "Home"
36
+ * @example When I pw click on link "Home"
37
37
  */
38
38
  export declare function clickLinkByText(page: any, text: string, table?: any): Promise<void>;
39
39
  /**
@@ -41,7 +41,7 @@ export declare function clickLinkByText(page: any, text: string, table?: any): P
41
41
  * @param page - The Playwright page object
42
42
  * @param labelText - The label text
43
43
  * @param table - Optional table data for click options
44
- * @example When I click on label "Email"
44
+ * @example When I pw click on label "Email"
45
45
  */
46
46
  export declare function clickLabelByText(page: any, labelText: string, table?: any): Promise<void>;
47
47
  /**
@@ -49,7 +49,7 @@ export declare function clickLabelByText(page: any, labelText: string, table?: a
49
49
  * @param page - The Playwright page object
50
50
  * @param rawText - The text to search for (can be a variable alias starting with @)
51
51
  * @param table - Optional table data for click options
52
- * @example When I click on text "Login"
52
+ * @example When I pw click on text "Login"
53
53
  */
54
54
  export declare function clickByText(page: any, rawText: string, table?: any): Promise<void>;
55
55
  /**
@@ -57,28 +57,28 @@ export declare function clickByText(page: any, rawText: string, table?: any): Pr
57
57
  * @param page - The Playwright page object
58
58
  * @param exactText - The exact text to match
59
59
  * @param table - Optional table data for click options
60
- * @example When I click on exact text "Submit"
60
+ * @example When I pw click on exact text "Submit"
61
61
  */
62
62
  export declare function clickByExactText(page: any, exactText: string, table?: any): Promise<void>;
63
63
  /**
64
64
  * Clicks on a selector provided via Regex match.
65
65
  * @param page - The Playwright page object
66
66
  * @param selector - The CSS selector string
67
- * @example When I click on selector "#btn-id"
67
+ * @example When I pw click on selector "#btn-id"
68
68
  */
69
69
  export declare function clickByRegexSelector(page: any, selector: string): Promise<void>;
70
70
  /**
71
71
  * Iterates through ALL currently stored active elements and clicks them one by one.
72
72
  * @param page - The Playwright page object
73
73
  * @param table - Optional table data for click options
74
- * @example When I click all
74
+ * @example When I pw click all
75
75
  */
76
76
  export declare function clickAllStoredElements(page: any, table?: any): Promise<void>;
77
77
  /**
78
78
  * Double-clicks on the currently stored (active) element.
79
79
  * @param page - The Playwright page object
80
80
  * @param table - Optional table data for click options
81
- * @example When I double click
81
+ * @example When I pw double click
82
82
  */
83
83
  export declare function doubleClickStoredElement(page: any, table?: any): Promise<void>;
84
84
  /**
@@ -86,12 +86,12 @@ export declare function doubleClickStoredElement(page: any, table?: any): Promis
86
86
  * @param page - The Playwright page object
87
87
  * @param text - The text to search for
88
88
  * @param table - Optional table data for click options
89
- * @example When I double click on text "Button"
89
+ * @example When I pw double click on text "Button"
90
90
  */
91
91
  export declare function doubleClickByText(page: any, text: string, table?: any): Promise<void>;
92
92
  /**
93
93
  * Double-clicks on the first element containing the EXACT specified text.
94
- * @example When I double click on exact text "Button"
94
+ * @example When I pw double click on exact text "Button"
95
95
  */
96
96
  export declare function doubleClickByExactText(page: any, exactText: string, table?: any): Promise<void>;
97
97
  /**
@@ -100,14 +100,14 @@ export declare function doubleClickByExactText(page: any, exactText: string, tab
100
100
  * @param x - The X coordinate
101
101
  * @param y - The Y coordinate
102
102
  * @param table - Optional table data for click options
103
- * @example When I double click position 100 200
103
+ * @example When I pw double click position 100 200
104
104
  */
105
105
  export declare function doubleClickPosition(page: any, x: number, y: number, table?: any): Promise<void>;
106
106
  /**
107
107
  * Right-clicks (Context Click) on the currently stored element.
108
108
  * @param page - The Playwright page object
109
109
  * @param table - Optional table data for click options
110
- * @example When I right click
110
+ * @example When I pw right click
111
111
  */
112
112
  export declare function rightClickStoredElement(page: any, table?: any): Promise<void>;
113
113
  /**
@@ -115,7 +115,7 @@ export declare function rightClickStoredElement(page: any, table?: any): Promise
115
115
  * @param page - The Playwright page object
116
116
  * @param text - The text to search for
117
117
  * @param table - Optional table data for click options
118
- * @example When I right click on text "Menu"
118
+ * @example When I pw right click on text "Menu"
119
119
  */
120
120
  export declare function rightClickByText(page: any, text: string, table?: any): Promise<void>;
121
121
  /**
@@ -124,7 +124,7 @@ export declare function rightClickByText(page: any, text: string, table?: any):
124
124
  * @param x - The X coordinate
125
125
  * @param y - The Y coordinate
126
126
  * @param table - Optional table data for click options
127
- * @example When I right click position 100 200
127
+ * @example When I pw right click position 100 200
128
128
  */
129
129
  export declare function rightClickPosition(page: any, x: number, y: number, table?: any): Promise<void>;
130
130
  /**
@@ -134,8 +134,8 @@ export declare function rightClickPosition(page: any, x: number, y: number, tabl
134
134
  * @param indexStr - The index string (1st, 2nd, 3rd, etc.)
135
135
  * @param text - The text to search for
136
136
  * @param table - Optional table data for click options
137
- * @example When I click on 1st element "Login"
138
- * When I click on 2nd element "Submit"
137
+ * @example When I pw click on 1st element "Login"
138
+ * When I pw click on 2nd element "Submit"
139
139
  */
140
140
  export declare function clickNthElementByText(page: any, indexStr: string, text: string, table?: any): Promise<void>;
141
141
  /**
@@ -144,7 +144,7 @@ export declare function clickNthElementByText(page: any, indexStr: string, text:
144
144
  * @param indexStr - The index string (1st, 2nd, 3rd, etc.)
145
145
  * @param selectorKey - The selector key (can be a fixture key or raw CSS/XPath selector)
146
146
  * @param table - Optional table data for click options
147
- * @example When I click on 1st selector ".btn"
147
+ * @example When I pw click on 1st selector ".btn"
148
148
  */
149
149
  export declare function clickNthElementBySelector(page: any, indexStr: string, selectorKey: string, table?: any): Promise<void>;
150
150
  /**
@@ -153,10 +153,10 @@ export declare function clickNthElementBySelector(page: any, indexStr: string, s
153
153
  * @param columnIndex - The 1-based index of the column to click (1st, 2nd, 3rd, etc.)
154
154
  * @param rowIndex - The selector key for the row (can be a fixture key or raw CSS selector)
155
155
  * @param table - Optional table data for click options
156
- * @example And I click on column 1 in row 1
157
- * @example And I click on column 2 in row 3
158
- * @example And I click on column 3 in row 2
159
- * @example And I click on column 4 in row 5
156
+ * @example And I pw click on column 1 in row 1
157
+ * @example And I pw click on column 2 in row 3
158
+ * @example And I pw click on column 3 in row 2
159
+ * @example And I pw click on column 4 in row 5
160
160
  */
161
161
  export declare function clickOnColumnInRow(page: any, columnIndex: number, rowIndex: number, table?: any): Promise<void>;
162
162
  /**
@@ -165,10 +165,10 @@ export declare function clickOnColumnInRow(page: any, columnIndex: number, rowIn
165
165
  * @param columnIndex - The 1-based index of the column to click
166
166
  * @param rowSelectorKey - The selector key for the row (can be a fixture key or raw CSS selector)
167
167
  * @param table - Optional table data for click options
168
- * @example When I click on 1st column in row "table#users tbody tr:first-child"
169
- * @example When I click on 2nd column in row "tr.user-row"
170
- * @example When I click on 3rd column in row ".data-table tbody tr:last-child"
171
- * @example When I click on 4th column in row "tr[data-id='123']"
168
+ * @example When I pw click on 1st column in row "table#users tbody tr:first-child"
169
+ * @example When I pw click on 2nd column in row "tr.user-row"
170
+ * @example When I pw click on 3rd column in row ".data-table tbody tr:last-child"
171
+ * @example When I pw click on 4th column in row "tr[data-id='123']"
172
172
  */
173
173
  export declare function clickOnNthColumnInRow(page: any, columnIndex: number, rowSelectorKey: string, table?: any): Promise<void>;
174
174
  //# sourceMappingURL=click.d.ts.map
@@ -32,7 +32,7 @@ const state_1 = require("../utils/state");
32
32
  * Clicks on the currently stored (active) element.
33
33
  * @param page - The Playwright page object
34
34
  * @param table - Optional table data for click options
35
- * @example When I click
35
+ * @example When I pw click
36
36
  */
37
37
  async function clickStoredElement(page, table) {
38
38
  const options = (0, state_1.parseClickOptions)(table);
@@ -46,8 +46,8 @@ async function clickStoredElement(page, table) {
46
46
  * @param page - The Playwright page object
47
47
  * @param selectorKey - The selector key (can be a fixture key or raw CSS/XPath selector)
48
48
  * @param table - Optional table data for click options
49
- * @example When I click on element ".my-element"
50
- * When I click on element "login.submitButton"
49
+ * @example When I pw click on element ".my-element"
50
+ * When I pw click on element "login.submitButton"
51
51
  */
52
52
  async function clickElementBySelector(page, selectorKey, table) {
53
53
  const options = (0, state_1.parseClickOptions)(table);
@@ -64,7 +64,7 @@ async function clickElementBySelector(page, selectorKey, table) {
64
64
  * @param page - The Playwright page object
65
65
  * @param label - The button label text
66
66
  * @param table - Optional table data for click options
67
- * @example When I click on button "Submit"
67
+ * @example When I pw click on button "Submit"
68
68
  */
69
69
  async function clickButtonByLabel(page, label, table) {
70
70
  const options = (0, state_1.parseClickOptions)(table);
@@ -75,7 +75,7 @@ async function clickButtonByLabel(page, label, table) {
75
75
  }
76
76
  /**
77
77
  * Clicks on a button role element with the EXACT specified text.
78
- * @example When I click on exact button text "Submit"
78
+ * @example When I pw click on exact button text "Submit"
79
79
  */
80
80
  async function clickButtonByExactText(page, exactText, table) {
81
81
  const options = (0, state_1.parseClickOptions)(table);
@@ -89,7 +89,7 @@ async function clickButtonByExactText(page, exactText, table) {
89
89
  * @param page - The Playwright page object
90
90
  * @param text - The link text
91
91
  * @param table - Optional table data for click options
92
- * @example When I click on link "Home"
92
+ * @example When I pw click on link "Home"
93
93
  */
94
94
  async function clickLinkByText(page, text, table) {
95
95
  const options = (0, state_1.parseClickOptions)(table);
@@ -103,7 +103,7 @@ async function clickLinkByText(page, text, table) {
103
103
  * @param page - The Playwright page object
104
104
  * @param labelText - The label text
105
105
  * @param table - Optional table data for click options
106
- * @example When I click on label "Email"
106
+ * @example When I pw click on label "Email"
107
107
  */
108
108
  async function clickLabelByText(page, labelText, table) {
109
109
  const options = (0, state_1.parseClickOptions)(table);
@@ -117,7 +117,7 @@ async function clickLabelByText(page, labelText, table) {
117
117
  * @param page - The Playwright page object
118
118
  * @param rawText - The text to search for (can be a variable alias starting with @)
119
119
  * @param table - Optional table data for click options
120
- * @example When I click on text "Login"
120
+ * @example When I pw click on text "Login"
121
121
  */
122
122
  async function clickByText(page, rawText, table) {
123
123
  const options = (0, state_1.parseClickOptions)(table);
@@ -142,7 +142,7 @@ async function clickByText(page, rawText, table) {
142
142
  * @param page - The Playwright page object
143
143
  * @param exactText - The exact text to match
144
144
  * @param table - Optional table data for click options
145
- * @example When I click on exact text "Submit"
145
+ * @example When I pw click on exact text "Submit"
146
146
  */
147
147
  async function clickByExactText(page, exactText, table) {
148
148
  const options = (0, state_1.parseClickOptions)(table);
@@ -156,7 +156,7 @@ async function clickByExactText(page, exactText, table) {
156
156
  * Clicks on a selector provided via Regex match.
157
157
  * @param page - The Playwright page object
158
158
  * @param selector - The CSS selector string
159
- * @example When I click on selector "#btn-id"
159
+ * @example When I pw click on selector "#btn-id"
160
160
  */
161
161
  async function clickByRegexSelector(page, selector) {
162
162
  const locator = page.locator(selector);
@@ -168,7 +168,7 @@ async function clickByRegexSelector(page, selector) {
168
168
  * Iterates through ALL currently stored active elements and clicks them one by one.
169
169
  * @param page - The Playwright page object
170
170
  * @param table - Optional table data for click options
171
- * @example When I click all
171
+ * @example When I pw click all
172
172
  */
173
173
  async function clickAllStoredElements(page, table) {
174
174
  const options = (0, state_1.parseClickOptions)(table);
@@ -188,7 +188,7 @@ async function clickAllStoredElements(page, table) {
188
188
  * Double-clicks on the currently stored (active) element.
189
189
  * @param page - The Playwright page object
190
190
  * @param table - Optional table data for click options
191
- * @example When I double click
191
+ * @example When I pw double click
192
192
  */
193
193
  async function doubleClickStoredElement(page, table) {
194
194
  const options = (0, state_1.parseClickOptions)(table);
@@ -201,7 +201,7 @@ async function doubleClickStoredElement(page, table) {
201
201
  * @param page - The Playwright page object
202
202
  * @param text - The text to search for
203
203
  * @param table - Optional table data for click options
204
- * @example When I double click on text "Button"
204
+ * @example When I pw double click on text "Button"
205
205
  */
206
206
  async function doubleClickByText(page, text, table) {
207
207
  const options = (0, state_1.parseClickOptions)(table);
@@ -211,7 +211,7 @@ async function doubleClickByText(page, text, table) {
211
211
  }
212
212
  /**
213
213
  * Double-clicks on the first element containing the EXACT specified text.
214
- * @example When I double click on exact text "Button"
214
+ * @example When I pw double click on exact text "Button"
215
215
  */
216
216
  async function doubleClickByExactText(page, exactText, table) {
217
217
  const options = (0, state_1.parseClickOptions)(table);
@@ -225,7 +225,7 @@ async function doubleClickByExactText(page, exactText, table) {
225
225
  * @param x - The X coordinate
226
226
  * @param y - The Y coordinate
227
227
  * @param table - Optional table data for click options
228
- * @example When I double click position 100 200
228
+ * @example When I pw double click position 100 200
229
229
  */
230
230
  async function doubleClickPosition(page, x, y, table) {
231
231
  const options = (0, state_1.parseClickOptions)(table);
@@ -236,7 +236,7 @@ async function doubleClickPosition(page, x, y, table) {
236
236
  * Right-clicks (Context Click) on the currently stored element.
237
237
  * @param page - The Playwright page object
238
238
  * @param table - Optional table data for click options
239
- * @example When I right click
239
+ * @example When I pw right click
240
240
  */
241
241
  async function rightClickStoredElement(page, table) {
242
242
  const options = (0, state_1.parseClickOptions)(table);
@@ -249,7 +249,7 @@ async function rightClickStoredElement(page, table) {
249
249
  * @param page - The Playwright page object
250
250
  * @param text - The text to search for
251
251
  * @param table - Optional table data for click options
252
- * @example When I right click on text "Menu"
252
+ * @example When I pw right click on text "Menu"
253
253
  */
254
254
  async function rightClickByText(page, text, table) {
255
255
  const options = (0, state_1.parseClickOptions)(table);
@@ -263,7 +263,7 @@ async function rightClickByText(page, text, table) {
263
263
  * @param x - The X coordinate
264
264
  * @param y - The Y coordinate
265
265
  * @param table - Optional table data for click options
266
- * @example When I right click position 100 200
266
+ * @example When I pw right click position 100 200
267
267
  */
268
268
  async function rightClickPosition(page, x, y, table) {
269
269
  const options = (0, state_1.parseClickOptions)(table);
@@ -277,8 +277,8 @@ async function rightClickPosition(page, x, y, table) {
277
277
  * @param indexStr - The index string (1st, 2nd, 3rd, etc.)
278
278
  * @param text - The text to search for
279
279
  * @param table - Optional table data for click options
280
- * @example When I click on 1st element "Login"
281
- * When I click on 2nd element "Submit"
280
+ * @example When I pw click on 1st element "Login"
281
+ * When I pw click on 2nd element "Submit"
282
282
  */
283
283
  async function clickNthElementByText(page, indexStr, text, table) {
284
284
  const index = parseInt(indexStr, 10);
@@ -296,7 +296,7 @@ async function clickNthElementByText(page, indexStr, text, table) {
296
296
  * @param indexStr - The index string (1st, 2nd, 3rd, etc.)
297
297
  * @param selectorKey - The selector key (can be a fixture key or raw CSS/XPath selector)
298
298
  * @param table - Optional table data for click options
299
- * @example When I click on 1st selector ".btn"
299
+ * @example When I pw click on 1st selector ".btn"
300
300
  */
301
301
  async function clickNthElementBySelector(page, indexStr, selectorKey, table) {
302
302
  const index = parseInt(indexStr, 10);
@@ -316,10 +316,10 @@ async function clickNthElementBySelector(page, indexStr, selectorKey, table) {
316
316
  * @param columnIndex - The 1-based index of the column to click (1st, 2nd, 3rd, etc.)
317
317
  * @param rowIndex - The selector key for the row (can be a fixture key or raw CSS selector)
318
318
  * @param table - Optional table data for click options
319
- * @example And I click on column 1 in row 1
320
- * @example And I click on column 2 in row 3
321
- * @example And I click on column 3 in row 2
322
- * @example And I click on column 4 in row 5
319
+ * @example And I pw click on column 1 in row 1
320
+ * @example And I pw click on column 2 in row 3
321
+ * @example And I pw click on column 3 in row 2
322
+ * @example And I pw click on column 4 in row 5
323
323
  */
324
324
  async function clickOnColumnInRow(page, columnIndex, rowIndex, table) {
325
325
  const options = (0, state_1.parseClickOptions)(table);
@@ -339,10 +339,10 @@ async function clickOnColumnInRow(page, columnIndex, rowIndex, table) {
339
339
  * @param columnIndex - The 1-based index of the column to click
340
340
  * @param rowSelectorKey - The selector key for the row (can be a fixture key or raw CSS selector)
341
341
  * @param table - Optional table data for click options
342
- * @example When I click on 1st column in row "table#users tbody tr:first-child"
343
- * @example When I click on 2nd column in row "tr.user-row"
344
- * @example When I click on 3rd column in row ".data-table tbody tr:last-child"
345
- * @example When I click on 4th column in row "tr[data-id='123']"
342
+ * @example When I pw click on 1st column in row "table#users tbody tr:first-child"
343
+ * @example When I pw click on 2nd column in row "tr.user-row"
344
+ * @example When I pw click on 3rd column in row ".data-table tbody tr:last-child"
345
+ * @example When I pw click on 4th column in row "tr[data-id='123']"
346
346
  */
347
347
  async function clickOnNthColumnInRow(page, columnIndex, rowSelectorKey, table) {
348
348
  const options = (0, state_1.parseClickOptions)(table);
@@ -2,7 +2,7 @@
2
2
  * A "Swiss Army Knife" function for filling forms, performing assertions, and executing mixed workflows.
3
3
  * Iterates through a Data Table and performs actions based on the Target and Value columns.
4
4
  * @example
5
- * When I fill the following "Login Flow" form data:
5
+ * When I pw fill the following "Login Flow" form data:
6
6
  * ```gherkin
7
7
  * | Target | Value |
8
8
  * | login.usernameField | myuser |
@@ -19,7 +19,7 @@ export declare function fillFormData(page: any, formName: string, table: any): P
19
19
  /**
20
20
  * Selects an option from a React select component.
21
21
  * This handles React's custom select implementations that may not use standard <select> elements.
22
- * @example When I select react option "Option 3" from "#react-select-id"
22
+ * @example When I pw select react option "Option 3" from "#react-select-id"
23
23
  */
24
24
  export declare function selectReactOption(page: any, optionText: string, selectorKey: string): Promise<void>;
25
25
  //# sourceMappingURL=form.d.ts.map
@@ -100,7 +100,7 @@ function resolveValue(page, rawValue) {
100
100
  * A "Swiss Army Knife" function for filling forms, performing assertions, and executing mixed workflows.
101
101
  * Iterates through a Data Table and performs actions based on the Target and Value columns.
102
102
  * @example
103
- * When I fill the following "Login Flow" form data:
103
+ * When I pw fill the following "Login Flow" form data:
104
104
  * ```gherkin
105
105
  * | Target | Value |
106
106
  * | login.usernameField | myuser |
@@ -226,7 +226,7 @@ async function fillFormData(page, formName, table) {
226
226
  /**
227
227
  * Selects an option from a React select component.
228
228
  * This handles React's custom select implementations that may not use standard <select> elements.
229
- * @example When I select react option "Option 3" from "#react-select-id"
229
+ * @example When I pw select react option "Option 3" from "#react-select-id"
230
230
  */
231
231
  async function selectReactOption(page, optionText, selectorKey) {
232
232
  const selectors = (0, fixtures_1.loadFixture)("selectors.json");
@@ -2,7 +2,7 @@
2
2
  * Iterates through a provided Data Table to fill inputs, click elements, or perform assertions.
3
3
  * This function is designed for bulk form interaction without writing repetitive "When I..." steps.
4
4
  * @example
5
- * When I fill the following "Login" test form data:
5
+ * When I pw fill the following "Login" test form data:
6
6
  * ```gherkin
7
7
  * | Target | Value |
8
8
  * | login.usernameField | myuser |
@@ -13,7 +13,7 @@ const fixtures_1 = require("../utils/fixtures");
13
13
  * Iterates through a provided Data Table to fill inputs, click elements, or perform assertions.
14
14
  * This function is designed for bulk form interaction without writing repetitive "When I..." steps.
15
15
  * @example
16
- * When I fill the following "Login" test form data:
16
+ * When I pw fill the following "Login" test form data:
17
17
  * ```gherkin
18
18
  * | Target | Value |
19
19
  * | login.usernameField | myuser |
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * Attempts to switch the logical context to a specific iframe.
3
3
  * Verifies the frame exists and logs a warning about frame scope limitations.
4
- * @example When I switch to frame "payment-iframe"
4
+ * @example When I pw switch to frame "payment-iframe"
5
5
  * @param selectorKey - The key of the iframe selector in the fixtures or a raw CSS selector.
6
6
  */
7
7
  export declare function switchToFrame(page: any, selectorKey: string): Promise<void>;
8
8
  /**
9
9
  * Finds an element inside a specific iframe and sets it as the active element.
10
10
  * This is the robust way to interact with iframe content (e.g., Stripe forms, embedded videos).
11
- * @example When I find element "card-number" in frame "stripe-element"
11
+ * @example When I pw find element "card-number" in frame "stripe-element"
12
12
  * @param elementSelectorKey - The key of the element selector in the fixtures or a raw CSS selector.
13
13
  * @param frameSelectorKey - The key of the iframe selector in the fixtures or a raw CSS selector.
14
14
  */
@@ -16,7 +16,7 @@ export declare function findElementInFrame(page: any, elementSelectorKey: string
16
16
  /**
17
17
  * Waits for a new browser tab (popup) to open.
18
18
  * Useful for validating `target="_blank"` links.
19
- * @example When I click on link "Open Dashboard" And I switch to new tab
19
+ * @example When I pw click on link "Open Dashboard" And I pw switch to new tab
20
20
  */
21
21
  export declare function switchToNewTab(page: any): Promise<void>;
22
22
  //# sourceMappingURL=frames.d.ts.map
@@ -13,7 +13,7 @@ const fixtures_1 = require("../utils/fixtures");
13
13
  /**
14
14
  * Attempts to switch the logical context to a specific iframe.
15
15
  * Verifies the frame exists and logs a warning about frame scope limitations.
16
- * @example When I switch to frame "payment-iframe"
16
+ * @example When I pw switch to frame "payment-iframe"
17
17
  * @param selectorKey - The key of the iframe selector in the fixtures or a raw CSS selector.
18
18
  */
19
19
  async function switchToFrame(page, selectorKey) {
@@ -29,7 +29,7 @@ async function switchToFrame(page, selectorKey) {
29
29
  /**
30
30
  * Finds an element inside a specific iframe and sets it as the active element.
31
31
  * This is the robust way to interact with iframe content (e.g., Stripe forms, embedded videos).
32
- * @example When I find element "card-number" in frame "stripe-element"
32
+ * @example When I pw find element "card-number" in frame "stripe-element"
33
33
  * @param elementSelectorKey - The key of the element selector in the fixtures or a raw CSS selector.
34
34
  * @param frameSelectorKey - The key of the iframe selector in the fixtures or a raw CSS selector.
35
35
  */
@@ -47,7 +47,7 @@ async function findElementInFrame(page, elementSelectorKey, frameSelectorKey) {
47
47
  /**
48
48
  * Waits for a new browser tab (popup) to open.
49
49
  * Useful for validating `target="_blank"` links.
50
- * @example When I click on link "Open Dashboard" And I switch to new tab
50
+ * @example When I pw click on link "Open Dashboard" And I pw switch to new tab
51
51
  */
52
52
  async function switchToNewTab(page) {
53
53
  console.log("⚠️ Multi-tab support requires Runner updates. Verifying popup event only.");
@@ -1,68 +1,68 @@
1
1
  /**
2
2
  * Fills the currently stored (active) input element with specific text.
3
3
  * Supports variable aliases using the "@" prefix.
4
- * @example When I type "hello world"
5
- * When I type "@storedPassword"
4
+ * @example When I pw type "hello world"
5
+ * When I pw type "@storedPassword"
6
6
  */
7
7
  export declare function typeText(page: any, textOrAlias: string, table?: any): Promise<void>;
8
8
  /**
9
9
  * Fills the active input with a value explicitly retrieved from the variable store.
10
- * @example When I type stored "userEmail"
10
+ * @example When I pw type stored "userEmail"
11
11
  */
12
12
  export declare function typeStoredText(page: any, alias: string, table?: any): Promise<void>;
13
13
  /**
14
14
  * Types text character-by-character with a 100ms delay.
15
- * @example When I slowly type "Playwright"
15
+ * @example When I pw slowly type "Playwright"
16
16
  */
17
17
  export declare function typeSlowly(page: any, text: string): Promise<void>;
18
18
  /**
19
19
  * Sets the value of an input directly (alias for filling).
20
- * @example When I set value "12345"
20
+ * @example When I pw set value "12345"
21
21
  */
22
22
  export declare function setInputValue(page: any, value: string, table?: any): Promise<void>;
23
23
  /**
24
24
  * Clears the text content of the active input field.
25
- * @example When I clear
25
+ * @example When I pw clear
26
26
  */
27
27
  export declare function clearInput(page: any): Promise<void>;
28
28
  /**
29
29
  * Simulates pressing a specific keyboard key on the active element.
30
- * @example When I press "Enter"
30
+ * @example When I pw press "Enter"
31
31
  */
32
32
  export declare function pressKeyOnInput(page: any, key: string): Promise<void>;
33
33
  /**
34
34
  * Checks the currently active checkbox or radio button.
35
- * @example When I check
35
+ * @example When I pw check
36
36
  */
37
37
  export declare function checkElement(page: any, table?: any): Promise<void>;
38
38
  /**
39
39
  * Unchecks the currently active checkbox.
40
- * @example When I uncheck
40
+ * @example When I pw uncheck
41
41
  */
42
42
  export declare function uncheckElement(page: any, table?: any): Promise<void>;
43
43
  /**
44
44
  * Checks/Unchecks the Nth checkbox or radio button matching a selector.
45
- * @example When I check 1st selector "input[type='checkbox']"
45
+ * @example When I pw check 1st selector "input[type='checkbox']"
46
46
  */
47
47
  export declare function checkNthElementBySelector(page: any, action: string, indexStr: string, selectorKey: string, table?: any): Promise<void>;
48
48
  /**
49
49
  * Selects an option in a `<select>` dropdown by its visible label.
50
- * @example When I select option "California"
50
+ * @example When I pw select option "California"
51
51
  */
52
52
  export declare function selectOption(page: any, option: string, table?: any): Promise<void>;
53
53
  /**
54
54
  * Submits the form related to the active element.
55
- * @example When I submit
55
+ * @example When I pw submit
56
56
  */
57
57
  export declare function submitForm(page: any): Promise<void>;
58
58
  /**
59
59
  * Uploads a file to the active file input element.
60
- * @example When I select file "data/invoice.pdf"
60
+ * @example When I pw select file "data/invoice.pdf"
61
61
  */
62
62
  export declare function selectFile(page: any, filePath: string): Promise<void>;
63
63
  /**
64
64
  * Uploads a file to the active file input element (alias for selectFile).
65
- * @example When I upload file "images/logo.png"
65
+ * @example When I pw upload file "images/logo.png"
66
66
  */
67
67
  export declare function uploadFile(page: any, filePath: string): Promise<void>;
68
68
  //# sourceMappingURL=inputs.d.ts.map