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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,12 +149,12 @@ File names for snapshots can be used as sub-task names. Separate sub-tasks initi
149
149
}
150
150
```
151
151
152
-
If the sub-task contains a property `pages`, this property is supposed to point to an array of commands - navigations and other browser interactions, waiting for browser states and making snapshots. They share the same instance of the webdriver, which improves the performance:
152
+
If the sub-task contains a property `commands`, this property is supposed to point to an array of command objects - navigations and other browser interactions, waiting for browser states and making snapshots. They share the same instance of the webdriver, which improves the performance:
153
153
154
154
```js
155
155
'html-dom-snapshot': {
156
156
all: {
157
-
pages: [
157
+
commands: [
158
158
{
159
159
file:'google.html',
160
160
url:'https://google.com'
@@ -282,7 +282,7 @@ If `wait` is omitted, the task will advance to another item without delay. It ca
282
282
283
283
### Parameter Combinations
284
284
285
-
The following array of commands within the `pages` property will change location, make a snapshot immediately to save the server-side pre-rendered content, then another one to see the progress after the first 500 milliseconds and yet another one, once the search form is ready. Then it submits the form by clicking on the "Search" button, waits until the search results are displayed and makes one final snapshot.
285
+
The following array of commands within the `commands` property will change location, make a snapshot immediately to save the server-side pre-rendered content, then another one to see the progress after the first 500 milliseconds and yet another one, once the search form is ready. Then it submits the form by clicking on the "Search" button, waits until the search results are displayed and makes one final snapshot.
286
286
287
287
```js
288
288
{
@@ -308,7 +308,7 @@ The following array of commands within the `pages` property will change location
308
308
309
309
Other Grunt tasks can run later and validate, compare or otherwise process the page content in different stages of the "Search" scenario.
310
310
311
-
Navigating to other location, interacting with the page, waiting for some effect to show and saving a snapshot can be divided to different objects in the `pages` array. However, at least One of the `file`, `url` ans `wait` oarameters has to be present in ever object.
311
+
Navigating to other location, interacting with the page, waiting for some effect to show and saving a snapshot can be divided to different objects in the `commands` array. However, at least One of the `file`, `url` ans `wait` oarameters has to be present in ever object.
312
312
313
313
When the commands become too many, you can divide them per page or per other criterion, which corresponds with a scenario and load them from separate modules:
314
314
@@ -326,7 +326,7 @@ The module for Addressbook would look like this:
0 commit comments