11{
22 "end" : {
33 "prefix" : " nwend" ,
4- "body" : " end(${0 :optionalCallback})" ,
4+ "body" : " end(${1 :optionalCallback})" ,
55 "description" : " end(optionalCallback)"
66 },
77 "pause" : {
88 "prefix" : " nwpause" ,
9- "body" : " pause(${0:1000ms }, ${1 :optionalCallback})" ,
9+ "body" : " pause(${1:2111ms }, ${2 :optionalCallback})" ,
1010 "description" : " pause(timems, optionalCallback)"
1111 },
1212 "perform" : {
1313 "prefix" : " nwperform" ,
14- "body" : " perform(${0 :optionalCallback})" ,
14+ "body" : " perform(${1 :optionalCallback})" ,
1515 "description" : " perform(optionalCallback)"
1616 },
1717 "useCss" : {
1818 "prefix" : " nwuseCss" ,
19- "body" : " useCss(${0 :optionalCallback})" ,
19+ "body" : " useCss(${1 :optionalCallback})" ,
2020 "description" : " useCss(optionalCallback"
2121 },
2222 "useXpath" : {
2323 "prefix" : " nwuseXpath" ,
24- "body" : " useXpath(${0 :optionalCallback})" ,
24+ "body" : " useXpath(${1 :optionalCallback})" ,
2525 "description" : " useXpath(optionalCallback)"
2626 },
2727 "switchWindow" : {
2828 "prefix" : " nwswitchWindow" ,
29- "body" : " switchWindow(${0 :handleOrName}, ${1 :optionalCallback})" ,
29+ "body" : " switchWindow(${1 :handleOrName}, ${2 :optionalCallback})" ,
3030 "description" : " switchWindow(handleOrName, optionalCallback)"
3131 },
3232 "resizeWindow" : {
3333 "prefix" : " nwresizeWindow" ,
34- "body" : " resizeWindow(${0 :width}, ${1 :height}, ${2 :optionalCallback})" ,
34+ "body" : " resizeWindow(${1 :width}, ${2 :height}, ${3 :optionalCallback})" ,
3535 "description" : " resizeWindow(width, height, optionalCallback)"
3636 },
3737 "setWindowPosition" : {
3838 "prefix" : " nwsetWindowPosition" ,
39- "body" : " setWindowPosition(${0 :offsetX}, ${1 :offsetY}, ${2 :optionalCallback})" ,
39+ "body" : " setWindowPosition(${1 :offsetX}, ${2 :offsetY}, ${3 :optionalCallback})" ,
4040 "description" : " setWindowPosition(offsetX, offsetY, optionalCallback)"
4141 },
4242 "maximizeWindow" : {
4343 "prefix" : " nwmaximizeWindow" ,
44- "body" : " maximizeWindow(${0 :optionalCallback})" ,
44+ "body" : " maximizeWindow(${1 :optionalCallback})" ,
4545 "description" : " maximizeWindow(optionalCallback)"
4646 },
4747 "saveScreenshot" : {
4848 "prefix" : " nwsaveScreenshot" ,
49- "body" : " saveScreenshot(${0 :fileName}, ${1 :optionalCallback})" ,
49+ "body" : " saveScreenshot(${1 :fileName}, ${2 :optionalCallback})" ,
5050 "description" : " saveScreenshot(fileName, optionalCallback)"
5151 },
5252 "getTitle" : {
5353 "prefix" : " nwgetTitle" ,
54- "body" : " getTitle(${0 :callback})" ,
54+ "body" : " getTitle(${1 :callback})" ,
5555 "description" : " getTitle(callback)"
5656 },
5757 "closeWindow" : {
5858 "prefix" : " nwcloseWindow" ,
59- "body" : " closeWindow(${0 :optionalCallback})" ,
59+ "body" : " closeWindow(${1 :optionalCallback})" ,
6060 "description" : " closeWindow(optionalCallback)"
6161 },
6262 "init" : {
6363 "prefix" : " nwinit" ,
64- "body" : " init(${0 :URL}, ${1 :optionalCallback})" ,
64+ "body" : " init(${1 :URL}, ${2 :optionalCallback})" ,
6565 "description" : " init(URL, optionalCallback)"
6666 },
6767 "urlHash" : {
6868 "prefix" : " nwurlHash" ,
69- "body" : " urlHash(${0 :hash}, ${1 :optionalCallback})" ,
69+ "body" : " urlHash(${1 :hash}, ${2 :optionalCallback})" ,
7070 "description" : " urlHash(hash, optionalCallback)"
7171 },
7272 "getCookies" : {
7373 "prefix" : " nwgetCookies" ,
74- "body" : " getCookies(${0 :callback})" ,
74+ "body" : " getCookies(${1 :callback})" ,
7575 "description" : " getCookies(callback)"
7676 },
7777 "getCookie" : {
7878 "prefix" : " nwgetCookie" ,
79- "body" : " getCookie(${0 :cookieName}, ${1 :callback})" ,
79+ "body" : " getCookie(${1 :cookieName}, ${2 :callback})" ,
8080 "description" : " getCookie(cookieName, callback)"
8181 },
8282 "setCookie" : {
8383 "prefix" : " nwsetCookie" ,
84- "body" : " setCookie(${0 :cookieObject}, ${1 :optionalCallback})" ,
84+ "body" : " setCookie(${1 :cookieObject}, ${2 :optionalCallback})" ,
8585 "description" : " setCookie(cookieObject, optionalCallback)"
8686 },
8787 "deleteCookie" : {
8888 "prefix" : " nwdeleteCookie" ,
89- "body" : " deleteCookie(${0 :cookieName}, ${1 :callback})" ,
89+ "body" : " deleteCookie(${1 :cookieName}, ${2 :callback})" ,
9090 "description" : " deleteCookie(cookieName, callback)"
9191 },
9292 "deleteCookies" : {
9393 "prefix" : " nwdeleteCookies" ,
94- "body" : " deleteCookies(${0 :optionalCallback})" ,
94+ "body" : " deleteCookies(${1 :optionalCallback})" ,
9595 "description" : " deleteCookies(optionalCallback)"
9696 },
9797 "injectScript" : {
9898 "prefix" : " nwinjectScript" ,
99- "body" : " injectScript(${0 :scriptUrl}, ${1 :id}, ${2 :optionalCallback})" ,
99+ "body" : " injectScript(${1 :scriptUrl}, ${2 :id}, ${3 :optionalCallback})" ,
100100 "description" : " injectScript(scriptUrl, id, optionalCallback)"
101101 },
102102 "getLogTypes" : {
103103 "prefix" : " nwgetLogTypes" ,
104- "body" : " getLogTypes(${0 :callback})" ,
104+ "body" : " getLogTypes(${1 :callback})" ,
105105 "description" : " getLogTypes(callback)"
106106 },
107107 "getLog" : {
108108 "prefix" : " nwgetLog" ,
109- "body" : " getLog(${0 :typeString}, ${1 :callback})" ,
109+ "body" : " getLog(${1 :typeString}, ${2 :callback})" ,
110110 "description" : " getLog(typeString, callback)"
111111 },
112112 "isLogAvailable" : {
113113 "prefix" : " nwisLogAvailable" ,
114- "body" : " isLogAvailable(${0 :typeString}, ${1 :callback})" ,
114+ "body" : " isLogAvailable(${1 :typeString}, ${2 :callback})" ,
115115 "description" : " isLogAvailable(typeString, callback)"
116116 },
117117 "click" : {
118118 "prefix" : " nwclick" ,
119- "body" : " click(${0 :selector}, ${1 :optionalCallback})" ,
119+ "body" : " click(${1 :selector}, ${2 :optionalCallback})" ,
120120 "description" : " click(selector, optionalCallback)"
121121 },
122122 "clearValue" : {
123123 "prefix" : " nwclearValue" ,
124- "body" : " clearValue(${0 :selector}, ${1 :optionalCallback})" ,
124+ "body" : " clearValue(${1 :selector}, ${2 :optionalCallback})" ,
125125 "description" : " clearValue(selector, optionalCallback)"
126126 },
127127 "getAttribute" : {
128128 "prefix" : " nwgetAttribute" ,
129- "body" : " getAttribute(${0 :selector}, ${1 :attribute}, ${2 :callback})" ,
129+ "body" : " getAttribute(${1 :selector}, ${2 :attribute}, ${3 :callback})" ,
130130 "description" : " getAttribute(selector, attribute, callback)"
131131 },
132132 "getCssProperty" : {
133133 "prefix" : " nwgetCssProperty" ,
134- "body" : " getCssProperty(${0 :selector}, ${1 :cssProperty}, ${2 :callback})" ,
134+ "body" : " getCssProperty(${1 :selector}, ${2 :cssProperty}, ${3 :callback})" ,
135135 "description" : " getCssProperty(selector, cssProperty, callback)"
136136 },
137137 "getElementSize" : {
138138 "prefix" : " nwgetElementSize" ,
139- "body" : " getElementSize(${0 :selector}, ${1 :callback})" ,
139+ "body" : " getElementSize(${1 :selector}, ${2 :callback})" ,
140140 "description" : " getElementSize(selector, callback)"
141141 },
142142 "getLocation" : {
143143 "prefix" : " nwgetLocation" ,
144- "body" : " getLocation(${0 :selector}, ${1 :callback})" ,
144+ "body" : " getLocation(${1 :selector}, ${2 :callback})" ,
145145 "description" : " getLocation(selector, callback)"
146146 },
147147 "getLocationInView" : {
148148 "prefix" : " nwgetLocationInView" ,
149- "body" : " getLocationInView(${0 :selector}, ${1 :callback})" ,
149+ "body" : " getLocationInView(${1 :selector}, ${2 :callback})" ,
150150 "description" : " getLocationInView(selector, callback)"
151151 },
152152 "getTagName" : {
153153 "prefix" : " nwgetTagName" ,
154- "body" : " getTagName(${0 :selector}, ${1 :callback})" ,
154+ "body" : " getTagName(${1 :selector}, ${2 :callback})" ,
155155 "description" : " getTagName(selector, callback)"
156156 },
157157 "getText" : {
158158 "prefix" : " nwgetText" ,
159- "body" : " getText(${0 :selector}, ${1 :callback})" ,
159+ "body" : " getText(${1 :selector}, ${2 :callback})" ,
160160 "description" : " getText(selector, callback)"
161161 },
162162 "getValue" : {
163163 "prefix" : " nwgetValue" ,
164- "body" : " getValue(${0 :selector}, ${1 :callback})" ,
164+ "body" : " getValue(${1 :selector}, ${2 :callback})" ,
165165 "description" : " getValue(selector, callback)"
166166 },
167167 "isVisible" : {
168168 "prefix" : " nwisVisible" ,
169- "body" : " isVisible(${0 :selector}, ${1 :callback})" ,
169+ "body" : " isVisible(${1 :selector}, ${2 :callback})" ,
170170 "description" : " isVisible(selector, callback)"
171171 },
172172 "moveToElement" : {
173173 "prefix" : " nwmoveToElement" ,
174- "body" : " moveToElement(${0 :selector}, ${1 :xoffset}, ${2 :yoffset}, ${3 :optionalCallback})" ,
174+ "body" : " moveToElement(${1 :selector}, ${2 :xoffset}, ${3 :yoffset}, ${4 :optionalCallback})" ,
175175 "description" : " moveToElement(selector, xoffset, yoffset, optionalCallback)"
176176 },
177177 "setValue" : {
178178 "prefix" : " nwsetValue" ,
179- "body" : " setValue(${0 :selector}, ${1 :inputValue}, ${2 :optionalCallback})" ,
179+ "body" : " setValue(${1 :selector}, ${2 :inputValue}, ${3 :optionalCallback})" ,
180180 "description" : " setValue(selector, inputValue, optionalCallback)"
181181 },
182182 "submitForm" : {
183183 "prefix" : " nwsubmitForm" ,
184- "body" : " submitForm(${0 :selector}, ${1 :optionalCallback})" ,
184+ "body" : " submitForm(${1 :selector}, ${2 :optionalCallback})" ,
185185 "description" : " submitForm(selector, optionalCallback)"
186186 },
187187 "attributeContains" : {
188188 "prefix" : " nwattributeContains" ,
189- "body" : " attributeContains(${0 :selector}, ${1 :attribute}, ${2 :expected}, ${3 :optionalMessage})" ,
189+ "body" : " attributeContains(${1 :selector}, ${2 :attribute}, ${3 :expected}, ${4 :optionalMessage})" ,
190190 "description" : " attributeContains(selector, attribute, expected, optionalMessage)"
191191 },
192192 "attributeEquals" : {
193193 "prefix" : " nwattributeEquals" ,
194- "body" : " attributeEquals(${0 :selector}, ${1 :attribute}, ${2 :expected}, ${3 :optionalMessage})" ,
194+ "body" : " attributeEquals(${1 :selector}, ${2 :attribute}, ${3 :expected}, ${4 :optionalMessage})" ,
195195 "description" : " attributeEquals(selector, attribute, expected, optionalMessage)"
196196 },
197197 "containsText" : {
198198 "prefix" : " nwcontainsText" ,
199- "body" : " containsText(${0 :selector}, ${1 :expectedText}, ${2 :optionalMessage})" ,
199+ "body" : " containsText(${1 :selector}, ${2 :expectedText}, ${3 :optionalMessage})" ,
200200 "description" : " containsText(selector, expectedText, optionalMessage)"
201201 },
202202 "cssClassNotPresent" : {
203203 "prefix" : " nwcssClassNotPresent" ,
204- "body" : " cssClassNotPresent(${0 :selector}, ${1 :className}, ${2 :optionalMessage})" ,
204+ "body" : " cssClassNotPresent(${1 :selector}, ${2 :className}, ${3 :optionalMessage})" ,
205205 "description" : " cssClassNotPresent(selector, className, optionalMessage)"
206206 },
207207 "cssClassPresent" : {
208208 "prefix" : " nwcssClassPresent" ,
209- "body" : " cssClassPresent(${0 :selector}, ${1 :className}, ${2 :optionalMessage})" ,
209+ "body" : " cssClassPresent(${1 :selector}, ${2 :className}, ${3 :optionalMessage})" ,
210210 "description" : " cssClassPresent(selector, className, optionalMessage)"
211211 },
212212 "cssProperty" : {
213213 "prefix" : " nwcssProperty" ,
214- "body" : " cssProperty(${0 :selector}, ${1 :cssProperty}, ${2 :expected}, ${3 :optionalMessage})" ,
214+ "body" : " cssProperty(${1 :selector}, ${2 :cssProperty}, ${3 :expected}, ${4 :optionalMessage})" ,
215215 "description" : " cssProperty(selector, cssProperty, expected, optionalMessage)"
216216 },
217217 "elementNotPresent" : {
218218 "prefix" : " nwelementNotPresent" ,
219- "body" : " elementNotPresent(${0 :selector}, ${1 :optionalMessage})" ,
219+ "body" : " elementNotPresent(${1 :selector}, ${2 :optionalMessage})" ,
220220 "description" : " elementNotPresent(selector, optionalMessage)"
221221 },
222222 "elementPresent" : {
223223 "prefix" : " nwelementPresent" ,
224- "body" : " elementPresent(${0 :selector}, ${1 :optionalMessage})" ,
224+ "body" : " elementPresent(${1 :selector}, ${2 :optionalMessage})" ,
225225 "description" : " elementPresent(selector, optionalMessage)"
226226 },
227227 "hidden" : {
228228 "prefix" : " nwhidden" ,
229- "body" : " hidden(${0 :selector}, ${1 :optionalMessage})" ,
229+ "body" : " hidden(${1 :selector}, ${2 :optionalMessage})" ,
230230 "description" : " hidden(selector, optionalMessage)"
231231 },
232232 "title" : {
233233 "prefix" : " nwtitle" ,
234- "body" : " title(${0 :expected}, ${1 :optionalMessage})" ,
234+ "body" : " title(${1 :expected}, ${2 :optionalMessage})" ,
235235 "description" : " title(expected, optionalMessage)"
236236 },
237237 "titleContains" : {
238238 "prefix" : " nwtitleContains" ,
239- "body" : " titleContains(${0 :expected}, ${1 :optionalMessage})" ,
239+ "body" : " titleContains(${1 :expected}, ${2 :optionalMessage})" ,
240240 "description" : " titleContains(expected, optionalMessage)"
241241 },
242242 "urlContains" : {
243243 "prefix" : " nwurlContains" ,
244- "body" : " urlContains(${0 :expected}, ${1 :optionalMessage})" ,
244+ "body" : " urlContains(${1 :expected}, ${2 :optionalMessage})" ,
245245 "description" : " urlContains(expected, optionalMessage)"
246246 },
247247 "urlEquals" : {
248248 "prefix" : " nwurlEquals" ,
249- "body" : " urlEquals(${0 :expected}, ${1 :optionalMessage})" ,
249+ "body" : " urlEquals(${1 :expected}, ${2 :optionalMessage})" ,
250250 "description" : " urlEquals(expected, optionalMessage)"
251251 },
252252 "value" : {
253253 "prefix" : " nwvalue" ,
254- "body" : " value(${0 :expected}, ${1 :optionalMessage})" ,
254+ "body" : " value(${1 :expected}, ${2 :optionalMessage})" ,
255255 "description" : " value(expected, optionalMessage)"
256256 },
257257 "valueContains" : {
258258 "prefix" : " nwvalueContains" ,
259- "body" : " valueContains(${0 :selector}, ${1 :expected}, ${2 :optionalMessage})" ,
259+ "body" : " valueContains(${1 :selector}, ${2 :expected}, ${3 :optionalMessage})" ,
260260 "description" : " valueContains(selector, expected, optionalMessage)"
261261 },
262262 "visible" : {
263263 "prefix" : " nwvisible" ,
264- "body" : " visible(${0 :selector}, ${1 :optionalMessage})" ,
264+ "body" : " visible(${1 :selector}, ${2 :optionalMessage})" ,
265265 "description" : " visible(selector, optionalMessage)"
266266 },
267267 "waitForElementNotPresent" : {
268268 "prefix" : " nwwaitForElementNotPresent" ,
269- "body" : " waitForElementNotPresent(${0 :selector}, ${1 :time})" ,
269+ "body" : " waitForElementNotPresent(${1 :selector}, ${2 :time})" ,
270270 "description" : " waitForElementNotPresent(selector, time)"
271271 },
272272 "waitForElementNotVisible" : {
273273 "prefix" : " nwwaitForElementNotVisible" ,
274- "body" : " waitForElementNotVisible(${0 :selector}, ${1 :time})" ,
274+ "body" : " waitForElementNotVisible(${1 :selector}, ${2 :time})" ,
275275 "description" : " waitForElementNotVisible(selector, time)"
276276 },
277277 "waitForElementPresent" : {
278278 "prefix" : " nwwaitForElementPresent" ,
279- "body" : " waitForElementPresent(${0 :selector}, ${1 :time})" ,
279+ "body" : " waitForElementPresent(${1 :selector}, ${2 :time})" ,
280280 "description" : " waitForElementPresent(selector, time)"
281281 },
282282"waitForElementVisible" : {
283283 "prefix" : " nwwaitForElementVisible" ,
284- "body" : " waitForElementVisible(${0 :selector}, ${1 :time})" ,
284+ "body" : " waitForElementVisible(${1 :selector}, ${2 :time})" ,
285285 "description" : " waitForElementVisible(selector, time)"
286286 }
287287}
0 commit comments