1
1
{
2
2
"end" : {
3
3
"prefix" : " nwend" ,
4
- "body" : " end(${0 :optionalCallback})" ,
4
+ "body" : " end(${1 :optionalCallback})" ,
5
5
"description" : " end(optionalCallback)"
6
6
},
7
7
"pause" : {
8
8
"prefix" : " nwpause" ,
9
- "body" : " pause(${0:1000ms }, ${1 :optionalCallback})" ,
9
+ "body" : " pause(${1:2111ms }, ${2 :optionalCallback})" ,
10
10
"description" : " pause(timems, optionalCallback)"
11
11
},
12
12
"perform" : {
13
13
"prefix" : " nwperform" ,
14
- "body" : " perform(${0 :optionalCallback})" ,
14
+ "body" : " perform(${1 :optionalCallback})" ,
15
15
"description" : " perform(optionalCallback)"
16
16
},
17
17
"useCss" : {
18
18
"prefix" : " nwuseCss" ,
19
- "body" : " useCss(${0 :optionalCallback})" ,
19
+ "body" : " useCss(${1 :optionalCallback})" ,
20
20
"description" : " useCss(optionalCallback"
21
21
},
22
22
"useXpath" : {
23
23
"prefix" : " nwuseXpath" ,
24
- "body" : " useXpath(${0 :optionalCallback})" ,
24
+ "body" : " useXpath(${1 :optionalCallback})" ,
25
25
"description" : " useXpath(optionalCallback)"
26
26
},
27
27
"switchWindow" : {
28
28
"prefix" : " nwswitchWindow" ,
29
- "body" : " switchWindow(${0 :handleOrName}, ${1 :optionalCallback})" ,
29
+ "body" : " switchWindow(${1 :handleOrName}, ${2 :optionalCallback})" ,
30
30
"description" : " switchWindow(handleOrName, optionalCallback)"
31
31
},
32
32
"resizeWindow" : {
33
33
"prefix" : " nwresizeWindow" ,
34
- "body" : " resizeWindow(${0 :width}, ${1 :height}, ${2 :optionalCallback})" ,
34
+ "body" : " resizeWindow(${1 :width}, ${2 :height}, ${3 :optionalCallback})" ,
35
35
"description" : " resizeWindow(width, height, optionalCallback)"
36
36
},
37
37
"setWindowPosition" : {
38
38
"prefix" : " nwsetWindowPosition" ,
39
- "body" : " setWindowPosition(${0 :offsetX}, ${1 :offsetY}, ${2 :optionalCallback})" ,
39
+ "body" : " setWindowPosition(${1 :offsetX}, ${2 :offsetY}, ${3 :optionalCallback})" ,
40
40
"description" : " setWindowPosition(offsetX, offsetY, optionalCallback)"
41
41
},
42
42
"maximizeWindow" : {
43
43
"prefix" : " nwmaximizeWindow" ,
44
- "body" : " maximizeWindow(${0 :optionalCallback})" ,
44
+ "body" : " maximizeWindow(${1 :optionalCallback})" ,
45
45
"description" : " maximizeWindow(optionalCallback)"
46
46
},
47
47
"saveScreenshot" : {
48
48
"prefix" : " nwsaveScreenshot" ,
49
- "body" : " saveScreenshot(${0 :fileName}, ${1 :optionalCallback})" ,
49
+ "body" : " saveScreenshot(${1 :fileName}, ${2 :optionalCallback})" ,
50
50
"description" : " saveScreenshot(fileName, optionalCallback)"
51
51
},
52
52
"getTitle" : {
53
53
"prefix" : " nwgetTitle" ,
54
- "body" : " getTitle(${0 :callback})" ,
54
+ "body" : " getTitle(${1 :callback})" ,
55
55
"description" : " getTitle(callback)"
56
56
},
57
57
"closeWindow" : {
58
58
"prefix" : " nwcloseWindow" ,
59
- "body" : " closeWindow(${0 :optionalCallback})" ,
59
+ "body" : " closeWindow(${1 :optionalCallback})" ,
60
60
"description" : " closeWindow(optionalCallback)"
61
61
},
62
62
"init" : {
63
63
"prefix" : " nwinit" ,
64
- "body" : " init(${0 :URL}, ${1 :optionalCallback})" ,
64
+ "body" : " init(${1 :URL}, ${2 :optionalCallback})" ,
65
65
"description" : " init(URL, optionalCallback)"
66
66
},
67
67
"urlHash" : {
68
68
"prefix" : " nwurlHash" ,
69
- "body" : " urlHash(${0 :hash}, ${1 :optionalCallback})" ,
69
+ "body" : " urlHash(${1 :hash}, ${2 :optionalCallback})" ,
70
70
"description" : " urlHash(hash, optionalCallback)"
71
71
},
72
72
"getCookies" : {
73
73
"prefix" : " nwgetCookies" ,
74
- "body" : " getCookies(${0 :callback})" ,
74
+ "body" : " getCookies(${1 :callback})" ,
75
75
"description" : " getCookies(callback)"
76
76
},
77
77
"getCookie" : {
78
78
"prefix" : " nwgetCookie" ,
79
- "body" : " getCookie(${0 :cookieName}, ${1 :callback})" ,
79
+ "body" : " getCookie(${1 :cookieName}, ${2 :callback})" ,
80
80
"description" : " getCookie(cookieName, callback)"
81
81
},
82
82
"setCookie" : {
83
83
"prefix" : " nwsetCookie" ,
84
- "body" : " setCookie(${0 :cookieObject}, ${1 :optionalCallback})" ,
84
+ "body" : " setCookie(${1 :cookieObject}, ${2 :optionalCallback})" ,
85
85
"description" : " setCookie(cookieObject, optionalCallback)"
86
86
},
87
87
"deleteCookie" : {
88
88
"prefix" : " nwdeleteCookie" ,
89
- "body" : " deleteCookie(${0 :cookieName}, ${1 :callback})" ,
89
+ "body" : " deleteCookie(${1 :cookieName}, ${2 :callback})" ,
90
90
"description" : " deleteCookie(cookieName, callback)"
91
91
},
92
92
"deleteCookies" : {
93
93
"prefix" : " nwdeleteCookies" ,
94
- "body" : " deleteCookies(${0 :optionalCallback})" ,
94
+ "body" : " deleteCookies(${1 :optionalCallback})" ,
95
95
"description" : " deleteCookies(optionalCallback)"
96
96
},
97
97
"injectScript" : {
98
98
"prefix" : " nwinjectScript" ,
99
- "body" : " injectScript(${0 :scriptUrl}, ${1 :id}, ${2 :optionalCallback})" ,
99
+ "body" : " injectScript(${1 :scriptUrl}, ${2 :id}, ${3 :optionalCallback})" ,
100
100
"description" : " injectScript(scriptUrl, id, optionalCallback)"
101
101
},
102
102
"getLogTypes" : {
103
103
"prefix" : " nwgetLogTypes" ,
104
- "body" : " getLogTypes(${0 :callback})" ,
104
+ "body" : " getLogTypes(${1 :callback})" ,
105
105
"description" : " getLogTypes(callback)"
106
106
},
107
107
"getLog" : {
108
108
"prefix" : " nwgetLog" ,
109
- "body" : " getLog(${0 :typeString}, ${1 :callback})" ,
109
+ "body" : " getLog(${1 :typeString}, ${2 :callback})" ,
110
110
"description" : " getLog(typeString, callback)"
111
111
},
112
112
"isLogAvailable" : {
113
113
"prefix" : " nwisLogAvailable" ,
114
- "body" : " isLogAvailable(${0 :typeString}, ${1 :callback})" ,
114
+ "body" : " isLogAvailable(${1 :typeString}, ${2 :callback})" ,
115
115
"description" : " isLogAvailable(typeString, callback)"
116
116
},
117
117
"click" : {
118
118
"prefix" : " nwclick" ,
119
- "body" : " click(${0 :selector}, ${1 :optionalCallback})" ,
119
+ "body" : " click(${1 :selector}, ${2 :optionalCallback})" ,
120
120
"description" : " click(selector, optionalCallback)"
121
121
},
122
122
"clearValue" : {
123
123
"prefix" : " nwclearValue" ,
124
- "body" : " clearValue(${0 :selector}, ${1 :optionalCallback})" ,
124
+ "body" : " clearValue(${1 :selector}, ${2 :optionalCallback})" ,
125
125
"description" : " clearValue(selector, optionalCallback)"
126
126
},
127
127
"getAttribute" : {
128
128
"prefix" : " nwgetAttribute" ,
129
- "body" : " getAttribute(${0 :selector}, ${1 :attribute}, ${2 :callback})" ,
129
+ "body" : " getAttribute(${1 :selector}, ${2 :attribute}, ${3 :callback})" ,
130
130
"description" : " getAttribute(selector, attribute, callback)"
131
131
},
132
132
"getCssProperty" : {
133
133
"prefix" : " nwgetCssProperty" ,
134
- "body" : " getCssProperty(${0 :selector}, ${1 :cssProperty}, ${2 :callback})" ,
134
+ "body" : " getCssProperty(${1 :selector}, ${2 :cssProperty}, ${3 :callback})" ,
135
135
"description" : " getCssProperty(selector, cssProperty, callback)"
136
136
},
137
137
"getElementSize" : {
138
138
"prefix" : " nwgetElementSize" ,
139
- "body" : " getElementSize(${0 :selector}, ${1 :callback})" ,
139
+ "body" : " getElementSize(${1 :selector}, ${2 :callback})" ,
140
140
"description" : " getElementSize(selector, callback)"
141
141
},
142
142
"getLocation" : {
143
143
"prefix" : " nwgetLocation" ,
144
- "body" : " getLocation(${0 :selector}, ${1 :callback})" ,
144
+ "body" : " getLocation(${1 :selector}, ${2 :callback})" ,
145
145
"description" : " getLocation(selector, callback)"
146
146
},
147
147
"getLocationInView" : {
148
148
"prefix" : " nwgetLocationInView" ,
149
- "body" : " getLocationInView(${0 :selector}, ${1 :callback})" ,
149
+ "body" : " getLocationInView(${1 :selector}, ${2 :callback})" ,
150
150
"description" : " getLocationInView(selector, callback)"
151
151
},
152
152
"getTagName" : {
153
153
"prefix" : " nwgetTagName" ,
154
- "body" : " getTagName(${0 :selector}, ${1 :callback})" ,
154
+ "body" : " getTagName(${1 :selector}, ${2 :callback})" ,
155
155
"description" : " getTagName(selector, callback)"
156
156
},
157
157
"getText" : {
158
158
"prefix" : " nwgetText" ,
159
- "body" : " getText(${0 :selector}, ${1 :callback})" ,
159
+ "body" : " getText(${1 :selector}, ${2 :callback})" ,
160
160
"description" : " getText(selector, callback)"
161
161
},
162
162
"getValue" : {
163
163
"prefix" : " nwgetValue" ,
164
- "body" : " getValue(${0 :selector}, ${1 :callback})" ,
164
+ "body" : " getValue(${1 :selector}, ${2 :callback})" ,
165
165
"description" : " getValue(selector, callback)"
166
166
},
167
167
"isVisible" : {
168
168
"prefix" : " nwisVisible" ,
169
- "body" : " isVisible(${0 :selector}, ${1 :callback})" ,
169
+ "body" : " isVisible(${1 :selector}, ${2 :callback})" ,
170
170
"description" : " isVisible(selector, callback)"
171
171
},
172
172
"moveToElement" : {
173
173
"prefix" : " nwmoveToElement" ,
174
- "body" : " moveToElement(${0 :selector}, ${1 :xoffset}, ${2 :yoffset}, ${3 :optionalCallback})" ,
174
+ "body" : " moveToElement(${1 :selector}, ${2 :xoffset}, ${3 :yoffset}, ${4 :optionalCallback})" ,
175
175
"description" : " moveToElement(selector, xoffset, yoffset, optionalCallback)"
176
176
},
177
177
"setValue" : {
178
178
"prefix" : " nwsetValue" ,
179
- "body" : " setValue(${0 :selector}, ${1 :inputValue}, ${2 :optionalCallback})" ,
179
+ "body" : " setValue(${1 :selector}, ${2 :inputValue}, ${3 :optionalCallback})" ,
180
180
"description" : " setValue(selector, inputValue, optionalCallback)"
181
181
},
182
182
"submitForm" : {
183
183
"prefix" : " nwsubmitForm" ,
184
- "body" : " submitForm(${0 :selector}, ${1 :optionalCallback})" ,
184
+ "body" : " submitForm(${1 :selector}, ${2 :optionalCallback})" ,
185
185
"description" : " submitForm(selector, optionalCallback)"
186
186
},
187
187
"attributeContains" : {
188
188
"prefix" : " nwattributeContains" ,
189
- "body" : " attributeContains(${0 :selector}, ${1 :attribute}, ${2 :expected}, ${3 :optionalMessage})" ,
189
+ "body" : " attributeContains(${1 :selector}, ${2 :attribute}, ${3 :expected}, ${4 :optionalMessage})" ,
190
190
"description" : " attributeContains(selector, attribute, expected, optionalMessage)"
191
191
},
192
192
"attributeEquals" : {
193
193
"prefix" : " nwattributeEquals" ,
194
- "body" : " attributeEquals(${0 :selector}, ${1 :attribute}, ${2 :expected}, ${3 :optionalMessage})" ,
194
+ "body" : " attributeEquals(${1 :selector}, ${2 :attribute}, ${3 :expected}, ${4 :optionalMessage})" ,
195
195
"description" : " attributeEquals(selector, attribute, expected, optionalMessage)"
196
196
},
197
197
"containsText" : {
198
198
"prefix" : " nwcontainsText" ,
199
- "body" : " containsText(${0 :selector}, ${1 :expectedText}, ${2 :optionalMessage})" ,
199
+ "body" : " containsText(${1 :selector}, ${2 :expectedText}, ${3 :optionalMessage})" ,
200
200
"description" : " containsText(selector, expectedText, optionalMessage)"
201
201
},
202
202
"cssClassNotPresent" : {
203
203
"prefix" : " nwcssClassNotPresent" ,
204
- "body" : " cssClassNotPresent(${0 :selector}, ${1 :className}, ${2 :optionalMessage})" ,
204
+ "body" : " cssClassNotPresent(${1 :selector}, ${2 :className}, ${3 :optionalMessage})" ,
205
205
"description" : " cssClassNotPresent(selector, className, optionalMessage)"
206
206
},
207
207
"cssClassPresent" : {
208
208
"prefix" : " nwcssClassPresent" ,
209
- "body" : " cssClassPresent(${0 :selector}, ${1 :className}, ${2 :optionalMessage})" ,
209
+ "body" : " cssClassPresent(${1 :selector}, ${2 :className}, ${3 :optionalMessage})" ,
210
210
"description" : " cssClassPresent(selector, className, optionalMessage)"
211
211
},
212
212
"cssProperty" : {
213
213
"prefix" : " nwcssProperty" ,
214
- "body" : " cssProperty(${0 :selector}, ${1 :cssProperty}, ${2 :expected}, ${3 :optionalMessage})" ,
214
+ "body" : " cssProperty(${1 :selector}, ${2 :cssProperty}, ${3 :expected}, ${4 :optionalMessage})" ,
215
215
"description" : " cssProperty(selector, cssProperty, expected, optionalMessage)"
216
216
},
217
217
"elementNotPresent" : {
218
218
"prefix" : " nwelementNotPresent" ,
219
- "body" : " elementNotPresent(${0 :selector}, ${1 :optionalMessage})" ,
219
+ "body" : " elementNotPresent(${1 :selector}, ${2 :optionalMessage})" ,
220
220
"description" : " elementNotPresent(selector, optionalMessage)"
221
221
},
222
222
"elementPresent" : {
223
223
"prefix" : " nwelementPresent" ,
224
- "body" : " elementPresent(${0 :selector}, ${1 :optionalMessage})" ,
224
+ "body" : " elementPresent(${1 :selector}, ${2 :optionalMessage})" ,
225
225
"description" : " elementPresent(selector, optionalMessage)"
226
226
},
227
227
"hidden" : {
228
228
"prefix" : " nwhidden" ,
229
- "body" : " hidden(${0 :selector}, ${1 :optionalMessage})" ,
229
+ "body" : " hidden(${1 :selector}, ${2 :optionalMessage})" ,
230
230
"description" : " hidden(selector, optionalMessage)"
231
231
},
232
232
"title" : {
233
233
"prefix" : " nwtitle" ,
234
- "body" : " title(${0 :expected}, ${1 :optionalMessage})" ,
234
+ "body" : " title(${1 :expected}, ${2 :optionalMessage})" ,
235
235
"description" : " title(expected, optionalMessage)"
236
236
},
237
237
"titleContains" : {
238
238
"prefix" : " nwtitleContains" ,
239
- "body" : " titleContains(${0 :expected}, ${1 :optionalMessage})" ,
239
+ "body" : " titleContains(${1 :expected}, ${2 :optionalMessage})" ,
240
240
"description" : " titleContains(expected, optionalMessage)"
241
241
},
242
242
"urlContains" : {
243
243
"prefix" : " nwurlContains" ,
244
- "body" : " urlContains(${0 :expected}, ${1 :optionalMessage})" ,
244
+ "body" : " urlContains(${1 :expected}, ${2 :optionalMessage})" ,
245
245
"description" : " urlContains(expected, optionalMessage)"
246
246
},
247
247
"urlEquals" : {
248
248
"prefix" : " nwurlEquals" ,
249
- "body" : " urlEquals(${0 :expected}, ${1 :optionalMessage})" ,
249
+ "body" : " urlEquals(${1 :expected}, ${2 :optionalMessage})" ,
250
250
"description" : " urlEquals(expected, optionalMessage)"
251
251
},
252
252
"value" : {
253
253
"prefix" : " nwvalue" ,
254
- "body" : " value(${0 :expected}, ${1 :optionalMessage})" ,
254
+ "body" : " value(${1 :expected}, ${2 :optionalMessage})" ,
255
255
"description" : " value(expected, optionalMessage)"
256
256
},
257
257
"valueContains" : {
258
258
"prefix" : " nwvalueContains" ,
259
- "body" : " valueContains(${0 :selector}, ${1 :expected}, ${2 :optionalMessage})" ,
259
+ "body" : " valueContains(${1 :selector}, ${2 :expected}, ${3 :optionalMessage})" ,
260
260
"description" : " valueContains(selector, expected, optionalMessage)"
261
261
},
262
262
"visible" : {
263
263
"prefix" : " nwvisible" ,
264
- "body" : " visible(${0 :selector}, ${1 :optionalMessage})" ,
264
+ "body" : " visible(${1 :selector}, ${2 :optionalMessage})" ,
265
265
"description" : " visible(selector, optionalMessage)"
266
266
},
267
267
"waitForElementNotPresent" : {
268
268
"prefix" : " nwwaitForElementNotPresent" ,
269
- "body" : " waitForElementNotPresent(${0 :selector}, ${1 :time})" ,
269
+ "body" : " waitForElementNotPresent(${1 :selector}, ${2 :time})" ,
270
270
"description" : " waitForElementNotPresent(selector, time)"
271
271
},
272
272
"waitForElementNotVisible" : {
273
273
"prefix" : " nwwaitForElementNotVisible" ,
274
- "body" : " waitForElementNotVisible(${0 :selector}, ${1 :time})" ,
274
+ "body" : " waitForElementNotVisible(${1 :selector}, ${2 :time})" ,
275
275
"description" : " waitForElementNotVisible(selector, time)"
276
276
},
277
277
"waitForElementPresent" : {
278
278
"prefix" : " nwwaitForElementPresent" ,
279
- "body" : " waitForElementPresent(${0 :selector}, ${1 :time})" ,
279
+ "body" : " waitForElementPresent(${1 :selector}, ${2 :time})" ,
280
280
"description" : " waitForElementPresent(selector, time)"
281
281
},
282
282
"waitForElementVisible" : {
283
283
"prefix" : " nwwaitForElementVisible" ,
284
- "body" : " waitForElementVisible(${0 :selector}, ${1 :time})" ,
284
+ "body" : " waitForElementVisible(${1 :selector}, ${2 :time})" ,
285
285
"description" : " waitForElementVisible(selector, time)"
286
286
}
287
287
}
0 commit comments