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
To record a new user flow, once you've stopped the recording of the previous user flow, click the **Create a new recording** () button in the top-left corner of the **Recorder** tool, and then repeat the steps from [Record a user flow](#record-a-user-flow):
67
+
To record a new user flow, after you've stopped the recording of the previous user flow:
68
68
69
-

69
+
1. Click the **Create a new recording** () button in the top-left corner of the **Recorder** tool:
70
+
71
+

72
+
73
+
1. Repeat the steps from [Record a user flow](#record-a-user-flow), above.
You can replay user flows either from the list of recorded user flows, or when viewing the details of a given user flow.
76
80
77
-
* To view the list of recorded user flows, click the dropdown menu that's in the **Recorder** tool toolbar, at the top, and select **2 recording(s)**. The label might show a different number of recordings, depending on how many recordings you've made.
78
-
* To view the details of a given user flow, click the dropdown menu that's in the **Recorder** tool toolbar, at the top, and click the name of the user flow you want to view.
81
+
* To view the list of recorded user flows, click the dropdown menu that's in the **Recorder** tool toolbar, at the top, and then select **2 recording(s)**. The label might show a different number of recordings, depending on how many recordings you've made.
82
+
83
+
* To view the details of a given user flow, click the dropdown list that's in the **Recorder** tool toolbar, at the top, and then click the name of a user flow.
79
84
80
85
81
86
<!-- ------------------------------ -->
82
87
#### Replay a user flow from the list of recordings
83
88
84
-
1. Click **Play recording** next to the recording that you want to replay:
89
+
1. Click the **Play recording**button next to a recording:
85
90
86
-

91
+

87
92
88
93
1. Wait while the **Recorder** tool replays the previously recorded user interactions. An animation of the steps that are being replayed appears in the **Recorder** tool:
89
94
@@ -95,7 +100,7 @@ You can replay user flows either from the list of recorded user flows, or when v
95
100
<!-- ------------------------------ -->
96
101
#### Replay a user flow from a recording
97
102
98
-
1. Click **Replay** in the top-right corner of the **Recorder** tool:
103
+
1. Click the **Replay** button in the top-right corner of the **Recorder** tool:
99
104
100
105

101
106
@@ -109,27 +114,33 @@ You can replay user flows either from the list of recorded user flows, or when v
109
114
<!-- ------------------------------ -->
110
115
#### Slowly replay a user flow to investigate issues
111
116
112
-
To see what's happening in the rendered page while the user interactions are being replayed, slow down the replay speed. By default, the **Recorder** tool replays user flows as fast as it can. To slow down the replay speed:
117
+
To see what's happening in the rendered page while the user interactions are being replayed, slow down the replay speed. By default, the **Recorder** tool replays user flows as fast as it can.
118
+
119
+
To slow down the replay speed:
113
120
114
-
1. Click the dropdown arrow next to **Replay** in the top-right corner of the **Recorder** tool, and then select a speed from the dropdown menu, such as **Slow**, **Very slow**, or **Extremely slow**:
121
+
* Click the dropdown arrow next to **Replay** in the top-right corner of the **Recorder** tool, and then select a speed from the dropdown menu, such as **Slow**, **Very slow**, or **Extremely slow**:
115
122
116
-

123
+

117
124
118
125
119
126
<!-- ------------------------------ -->
120
-
#### Pause while replaying a user flow by using step breakpoints
127
+
#### Pause while replaying a user flow, by using breakpoints
121
128
122
-
To inspect the rendered webpage at a specific point of the user flow, pause the replay by using a breakpoint. To add a breakpoint to a user flow:
129
+
To inspect the rendered webpage at a specific point of the user flow, pause the replay by using a breakpoint.
123
130
124
-
1. Click the **Open step actions** () icon next to the step you want to pause at, and then select **Add breakpoint**:
131
+
To add a breakpoint to a user flow:
125
132
126
-

133
+
1. Next to the flow step at which to pause, click the **Open step actions** () button , and then select **Add breakpoint**:
127
134
128
-
1. To start the user flow, click **Replay** in the top-right corner of the **Recorder** tool. The replay pauses when it reaches the step with the breakpoint. The **Continue** and **Execute one step** buttons also become available in the toolbar:
135
+

129
136
130
-

137
+
1. To start the user flow, click **Replay** in the top-right corner of the **Recorder** tool.
131
138
132
-
1. Click the **Execute one step** button to execute the next step and pause again, or click the **Continue** button to continue the replay until the next breakpoint, or the end of the user flow, is reached.
139
+
The replay pauses when it reaches the step that has a breakpoint. The **Continue** and **Execute one step** buttons also become available in the toolbar:
140
+
141
+

142
+
143
+
1. Click the **Execute one step** button to execute the next step and pause again, or click the **Continue** button to continue the replay until the next breakpoint (or the end of the user flow) is reached.
@@ -161,24 +172,26 @@ After you've recorded a user flow, you can edit the steps of the user flow. For
161
172
162
173
To add a new step to an existing user flow:
163
174
164
-
1. Click the **Open step actions** () icon next to the step before or after which you want to add a new step, and then select **Add step before**, or **Add step after**:
175
+
1. Click the **Open step actions** () button next to the step before or after which you want to add a new step, and then select **Add step before** or **Add step after**:
165
176
166
-

177
+

167
178
168
-
1. Follow the instructions in [Edit a step](#edit-a-step) to edit the details of the new step that you added. The new step is temporarily called**Wait for element**.
179
+
1. Follow the instructions in [Edit a step](#edit-a-step)below, to edit the details of the new step that you added. The new step is temporarily named**Wait for element**.
169
180
170
181
171
182
<!-- ------------------------------ -->
172
183
#### Edit a step
173
184
174
185
To edit the details of an existing step:
175
186
176
-
1. To open the details section of the step you want to edit, click the triangle () icon next to the step. The details section of the step opens:
187
+
1. To open the details section of the step you want to edit, click the triangle () button next to the step. The details section of the step opens:
188
+
189
+

177
190
178
-

191
+
1. Edit the details of the step, such as the **type** of step, the **selectors**of the DOM element the step applies to, or the properties of the step. The various types of steps and their properties are listed in the section below. Your changes are saved automatically.
179
192
180
-
1. Edit the details of the step, such as the **type** of step, the **selectors** of the DOM element the step applies to, or the properties of the step. See below for more information about the different types of steps and their properties. Your changes are saved automatically.
181
193
194
+
<!-- ---------- -->
182
195
###### Change the type of step
183
196
184
197
To change the type of step when editing the details of a step:
@@ -189,7 +202,7 @@ To change the type of step when editing the details of a step:
189
202
190
203

191
204
192
-
Below are the different types of steps that you can use when editing a step in a user flow. For each step type, the list of properties that apply to the step is also shown.
205
+
You can use the following types of steps when editing a step in a user flow. Each step type has a list of properties that apply to the step.
193
206
194
207
| Step type | Description | Properties |
195
208
|:--- |:--- |:--- |
@@ -207,29 +220,37 @@ Below are the different types of steps that you can use when editing a step in a
207
220
|`waitForElement`| Wait for an element, or for multiple elements, to be present in the webpage. |**selectors**: ways to find the element this step applies to. |
208
221
|`waitForExpression`| Wait until a JavaScript expression evaluates to `true`. |**expression**: the JavaScript expression to evaluate. |
209
222
223
+
224
+
<!-- ---------- -->
210
225
###### Edit the selectors of a step
211
226
212
-
Many step types have a **selectors** property, which specifies the DOM element that the step applies to. For example, a `click` step has a **selectors** property to define which element in the page is clicked when that step of the user flow runs.
227
+
Many step types have a **selectors** property, which specifies the DOM element that the step applies to. For example, a `click` step has a **selectors** property to define which element in the page is clicked when that step of the user flow runs.
228
+
229
+
The **selectors** property is a list of one or more selectors. Each selector in the list can be a different way to find the element in the page. The **Recorder** tool tries each selector in the list, in order, until it finds an element in the page that matches the selector.
213
230
214
-
The **selectors** property is a list of one or more selectors, where each selector in the list can be a different way to find the element in the page. The **Recorder** tool tries each selector in the list, in order, until it finds an element in the page that matches the selector. A selectors can be:
231
+
A selector can be any of the following types:
215
232
216
233
* A CSS selector, such as `#my-element-with-id` or `.my-class`.
217
234
* A XPath selector, prefixed with `xpath/`, such as `xpath//html/body/form/div/label`.
218
235
* The text content of the element, prefixed with `text/`, such as `text/Add a task`.
219
236
220
-
You can edit the selectors of a step either manually, or by selecting an element in the rendered webpage.
237
+
You can edit the selectors of a step by either approach:
238
+
* Selecting an element in the rendered webpage.
239
+
* Manually add, remove, or modify a selector.
221
240
222
-
* To edit the selectors by selecting an element in the rendered webpage, click **Select an element in the page to update selectors**, and then click the element in the rendered webpage that you want to select. The **Recorder** tool updates the list of selectors to match the selected element:
241
+
242
+
* To edit the selectors by selecting an element in the rendered webpage, click **Select an element in the page to update selectors**, and then click the element in the rendered webpage that you want to select. The **Recorder** tool updates the list of selectors to match the selected element:
223
243
224
244

225
245
226
-
* To edit the selectors manually, add, edit, or delete selectors:
246
+
247
+
* You can manually add, remove, or modify a selector:
227
248
228
249
* To add or remove a selector, under **Selectors**, hover over a selector, and then click **Add a selector** or **Remove a selector**:
229
250
230
251

231
252
232
-
* To change the value of a selector, under **Selectors**, click the input box that contains the value of the selector, and then enter the new value of the selector:
253
+
* To modify the value of a selector, under **Selectors**, click the input box that contains the value of the selector, and then enter the new value for the selector:
233
254
234
255

235
256
@@ -239,23 +260,23 @@ You can edit the selectors of a step either manually, or by selecting an element
239
260
240
261
To delete a step from an existing user flow:
241
262
242
-
1. Click the **Open step actions** () icon next to the step you want to delete, and then select **Remove step**:
263
+
1. Click the **Open step actions** () button next to the step you want to delete, and then select **Remove step**:
243
264
244
-

265
+

To delete a previously recorded user flow, when viewing the list of recordings, click **Delete recording** () next to the recording you want to delete:
251
272
252
-

273
+

To share user flows with other people, for example to help other people reproduce a bug by running the same set of steps as you, export the user flows you recorded as files.
279
+
To share a user flow with other people, export your recorded user flow as a JSON file. For example, sharing a user flow can help other people reproduce a bug by running the same set of steps as you.
259
280
260
281
261
282
<!-- ------------------------------ -->
@@ -267,7 +288,7 @@ To share a user flow with another person, export the user flow as a JSON file:
267
288
268
289

269
290
270
-
1.Choose a location to save the file on your computer. The file is saved with the name of the user flow, and the extension `.json`.
291
+
1.Select a location at which to save the file. The file is saved with the name of the user flow, and the extension `.json`.
271
292
272
293
273
294
<!-- ------------------------------ -->
@@ -279,26 +300,24 @@ To import a user flow from a JSON file:
1. In the file picker dialog that opens, select the JSON file that contains the user flow you want to import, and then click **Open**. The user flow is imported, and appears in the list of recordings in the **Recorder** tool.
303
+
1. In the file chooser dialog that opens, select a user flow JSON file, and then click the **Open** button. The user flow is imported, and appears in the list of recordings in the **Recorder** tool.
To generate test scripts and run them automatically with a test automation framework, export your user flows as test script files.
309
+
To generate a test script and run it automatically with a test automation framework, export a user flow as a `.js`test script file, as follows:
289
310
290
-
You can export user flows as test scripts in the following formats:
311
+
1. When viewing the steps of a user flow, in the **Recorder** tool toolbar, click the **Export** () button, and then select an export format:
291
312
292
-
| Test automation framework | Description |
293
-
|:--- |:--- |
294
-
|`@puppeteer/replay`| Export the user flow as a test script for the **Replay** library. To learn more, see the [Replay repo on GitHub](https://github.com/puppeteer/replay). |
295
-
| Puppeteer | Export the user flow as a test script for the Puppeteer test automation framework. To learn more, see [Puppeteer](https://pptr.dev/). |
296
-
| Puppeteer (including Lighthouse analysis) | Export the user flow as a test script for the Puppeteer test automation framework, and include a Lighthouse analysis of the performance of the website. |
297
-
298
-
To export a user flow as a test script file:
313
+

299
314
300
-
1. When viewing the steps of a user flow, click the **Export** () button in the **Recorder** tool toolbar, and then select the format you want to export the user flow as:
315
+
| Export format | Test automation framework |
316
+
|:--- |:--- |
317
+
|`@puppeteer/replay`| Exports the user flow as a test script for the **Replay** library. See the [puppeteer / replay](https://github.com/puppeteer/replay) repo. |
318
+
| Puppeteer | Exports the user flow as a test script for the Puppeteer test automation framework. See [Puppeteer](https://pptr.dev). |
319
+
| Puppeteer (including Lighthouse analysis) | Exports the user flow as a test script for the Puppeteer test automation framework, and includes a Lighthouse analysis of the performance of the website. |
301
320
302
-

321
+
The **Save As** dialog opens.
303
322
304
-
1.Choose a location to save the file on your computer. The file is saved with the name of the user flow, and the extension `.js`.
323
+
1.Select a location in which to save the file. The file is saved with the name of the user flow, and the extension `.js`.
0 commit comments