1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
|
{
"cat": {
"prefix": "cat",
"description": "Catenate",
"body": "\\${${1:name}\\}= Catenate SEPARATOR=${2:---} ${3:Hello} ${4:world}",
"luasnip": {
"priority": -50
}
},
"eval": {
"prefix": "eval",
"description": "Evaluate",
"body": "\\${${1:val}\\}= Evaluate ${2:\\${x\\} - 10}"
},
"nop": {
"prefix": "nop",
"description": "No Operation",
"body": "No Operation"
},
"rfk": {
"prefix": "rfk",
"description": "Return From Keyword",
"body": "Return From Keyword ${1:\\${optional return value\\}}"
},
"rfki": {
"prefix": "rfki",
"description": "Return From Keyword If",
"body": "Return From Keyword If '\\${${1:rc}\\}' != '${2:abc}' ${3:\\${optional return value\\}}"
},
"rk": {
"prefix": "rk",
"description": "Run Keyword",
"body": "Run Keyword ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkacof": {
"prefix": "rkacof",
"description": "Run Keyword And Continue On Failure",
"body": "Run Keyword And Continue On Failure ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkaee": {
"prefix": "rkaee",
"description": "Run Keyword And Expect Error",
"body": "Run Keyword And Expect Error ${1:My error} ${2:\\${kw\\}} ${3:\\${args\\}}"
},
"rkaie": {
"prefix": "rkaie",
"description": "Run Keyword And Ignore Error",
"body": [
"Run Keyword And Ignore Error ${1:\\${kw\\}} ${2:\\${args\\}}",
"\\${${3:result}\\} \\${${4:return_value}\\}= Run Keyword And Ignore Error ${1:\\${kw\\}} ${2:\\${args\\}}"
]
},
"rkar": {
"prefix": "rkar",
"description": "Run Keyword And Return",
"body": "Run Keyword And Return ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkari": {
"prefix": "rkari",
"description": "Run Keyword And Return If",
"body": "Run Keyword And Return If '\\${${1:rc}\\}' != '${2:abc}' ${3:\\${kw\\}} ${4:\\${args\\}}"
},
"rkars": {
"prefix": "rkars",
"description": "Run Keyword And Return Status",
"body": "\\${${3:result}\\}= Run Keyword And Return Status ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkiactf": {
"prefix": "rkiactf",
"description": "Run Keyword If Any Critical Tests Failed",
"body": "Run Keyword If Any Critical Tests Failed ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkiactp": {
"prefix": "rkiactp",
"description": "Run Keyword If All Critical Tests Passed",
"body": "Run Keyword If All Critical Tests Passed ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkiatf": {
"prefix": "rkiatf",
"description": "Run Keyword If Any Tests Failed",
"body": "Run Keyword If Any Tests Failed ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkiatp": {
"prefix": "rkiatp",
"description": "Run Keyword If All Tests Passed",
"body": "Run Keyword If All Tests Passed ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkitf": {
"prefix": "rkitf",
"description": "Run Keyword If Test Failed",
"body": "Run Keyword If Test Failed ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkitp": {
"prefix": "rkitp",
"description": "Run Keyword If Test Passed",
"body": "Run Keyword If Test Passed ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rkito": {
"prefix": "rkito",
"description": "Run Keyword If Timeout Occurred",
"body": "Run Keyword If Timeout Occurred ${1:\\${kw\\}} ${2:\\${args\\}}"
},
"rku": {
"prefix": "rku",
"description": "Run Keyword Unless",
"body": "Run Keyword Unless '\\${${1:rc}\\}' != '${2:abc}' ${3:\\${kw\\}} ${4:\\${args\\}}"
},
"sgv": {
"prefix": "sgv",
"description": "Set Global Variable",
"body": "Set Global Variable \\${${1:name}\\} ${2:\\${value\\}}"
},
"sbe": {
"prefix": "sbe",
"description": "Should Be Equal",
"body": "Should Be Equal \"\\${${1:var}\\}\" \"${2:expected value}\" ${3:\"optional error msg\"}\t${4:ignore_case=True}"
},
"sleep": {
"prefix": "sleep",
"description": "Sleep",
"body": "Sleep ${1:2 minutes 10 seconds}"
},
"ssv": {
"prefix": "ssv",
"description": "Set Suite Variable",
"body": "Set Suite Variable \\${${1:name}\\} ${2:\\${value\\}}"
},
"stv": {
"prefix": "stv",
"description": "Set Test Variable",
"body": "Set Test Variable \\${${1:name}\\} ${2:\\${value\\}}"
},
"sv": {
"prefix": "sv",
"description": "Set Variable",
"body": "\\${${1:name}\\}= Set Variable ${2:\\${value\\}}"
},
"pause": {
"prefix": "pause",
"description": "Pause test execution",
"body": [
"Import library Dialogs",
"Pause execution"
]
},
"tpause": {
"prefix": "tpause",
"description": "Teardown Pause - pause test execution only on failure",
"body": [
"[Teardown] Run Keyword If Test Failed Run Keywords",
"... Import library Dialogs AND",
"... Pause execution"
]
},
"cps": {
"prefix": "cps",
"description": "Capture Page Screenshot",
"body": "Capture Page Screenshot ${1:\\${optional filename\\}}"
},
"esbd": {
"prefix": "esbd",
"description": "Element Should Be Disabled",
"body": "Element Should Be Disabled \\${${1:locator}\\}"
},
"esbe": {
"prefix": "esbe",
"description": "Element Should Be Enabled",
"body": "Element Should Be Enabled \\${${1:locator}\\}"
},
"esbf": {
"prefix": "esbf",
"description": "Element Should Be Focused",
"body": "Element Should Be Focused \\${${1:locator}\\}"
},
"esbv": {
"prefix": "esbv",
"description": "Element Should Be Visible",
"body": "Element Should Be Visible \\${${1:locator}\\} ${2:\\${optional message\\}}"
},
"esc": {
"prefix": "esc",
"description": "Element Should Contain",
"body": "Element Should Contain \\${${1:locator}\\} ${2:\\${expected\\}} ${3:\\${optional message\\}}"
},
"esnbv": {
"prefix": "esnbv",
"description": "Element Should Not Be Visible",
"body": "Element Should Not Be Visible \\${${1:locator}\\} ${2:\\${optional message\\}}"
},
"esnc": {
"prefix": "esnc",
"description": "Element Should Not Contain",
"body": "Element Should Not Contain \\${${1:locator}\\} ${2:\\${expected\\}} ${3:\\${optional message\\}}"
},
"etsb": {
"prefix": "etsb",
"description": "Element Text Should Be",
"body": "Element Text Should Be \\${${1:locator}\\} ${2:\\${expected\\}} ${3:\\${optional message\\}}"
},
"eaj": {
"prefix": "eaj",
"description": "Execute Async Javascript",
"body": "Execute Async Javascript ${1:\\${code line 1\\}} ${2:\\${code line 2\\}}"
},
"ej": {
"prefix": "ej",
"description": "Execute Javascript",
"body": "Execute Javascript ${1:\\${code line 1\\}} ${2:\\${code line 2\\}}"
},
"gwp": {
"prefix": "gwp",
"description": "Get Window Position",
"body": "\\${${1:x}\\} \\${${2:y}\\}= Get Window Position"
},
"gws": {
"prefix": "gws",
"description": "Get Window Size",
"body": "\\${${1:width}\\} \\${${2:height}\\}= Get Window Size"
},
"mbw": {
"prefix": "mbw",
"description": "Maximize Browser Window",
"body": "Maximize Browser Window"
},
"md": {
"prefix": "md",
"description": "Mouse Down",
"body": "Mouse Down \\${${1:locator}\\}"
},
"mdoi": {
"prefix": "mdoi",
"description": "Mouse Down On Image",
"body": "Mouse Down On Image ${1:\\${locator\\}}"
},
"mdol": {
"prefix": "mdol",
"description": "Mouse Down On Link",
"body": "Mouse Down On Link ${1:\\${locator\\}}"
},
"mout": {
"prefix": "mout",
"description": "Mouse Out",
"body": "Mouse Out ${1:\\${locator\\}}"
},
"mover": {
"prefix": "mover",
"description": "Mouse Over",
"body": "Mouse Over ${1:\\${locator\\}}"
},
"mu": {
"prefix": "mu",
"description": "Mouse Up",
"body": "Mouse Up ${1:\\${locator\\}}"
},
"ob": {
"prefix": "ob",
"description": "Open Browser",
"body": "Open Browser ${1:\\${url\\}} ${2:\\${browser=firefox\\}} ${3:\\${alias=None\\}} ${4:\\${remote_url=False\\}} ${5:\\${desired_capabilities=None\\}} ${6:\\${ff_profile_dir=None\\}}"
},
"ocm": {
"prefix": "ocm",
"description": "Open Context Menu",
"body": "Open Context Menu ${1:\\${locator\\}}"
},
"psc": {
"prefix": "psc",
"description": "Page Should Contain",
"body": "Page Should Contain ${1:\\${text\\}} ${2:loglevel=INFO}"
},
"pscb": {
"prefix": "pscb",
"description": "Page Should Contain Button",
"body": "Page Should Contain Button ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"pscc": {
"prefix": "pscc",
"description": "Page Should Contain Checkbox",
"body": "Page Should Contain Checkbox ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psce": {
"prefix": "psce",
"description": "Page Should Contain Element",
"body": "Page Should Contain Element ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psci": {
"prefix": "psci",
"description": "Page Should Contain Image",
"body": "Page Should Contain Image ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"pscl": {
"prefix": "pscl",
"description": "Page Should Contain Link",
"body": "Page Should Contain Link ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"pscrb": {
"prefix": "pscrb",
"description": "Page Should Contain Radio Button",
"body": "Page Should Contain Radio Button ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psct": {
"prefix": "psct",
"description": "Page Should Contain Textfield",
"body": "Page Should Contain Textfield ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psnc": {
"prefix": "psnc",
"description": "Page Should Not Contain",
"body": "Page Should Not Contain ${1:\\${text\\}} ${2:loglevel=INFO}"
},
"psncb": {
"prefix": "psncb",
"description": "Page Should Not Contain Button",
"body": "Page Should Not Contain Button ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psncc": {
"prefix": "psncc",
"description": "Page Should Not Contain Checkbox",
"body": "Page Should Not Contain Checkbox ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psnce": {
"prefix": "psnce",
"description": "Page Should Not Contain Element",
"body": "Page Should Not Contain Element ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psnci": {
"prefix": "psnci",
"description": "Page Should Not Contain Image",
"body": "Page Should Not Contain Image ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psncl": {
"prefix": "psncl",
"description": "Page Should Not Contain Link",
"body": "Page Should Not Contain Link ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psncrb": {
"prefix": "psncrb",
"description": "Page Should Not Contain Radio Button",
"body": "Page Should Not Contain Radio Button ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"psnct": {
"prefix": "psnct",
"description": "Page Should Not Contain Textfield",
"body": "Page Should Not Contain Textfield ${1:\\${locator\\}} ${2:\\${message=\\}} ${3:loglevel=INFO}"
},
"rktrof": {
"prefix": "rktrof",
"description": "Register Keyword To Run On Failure",
"body": "Register Keyword To Run On Failure ${1:\\${kw\\}}"
},
"wuec": {
"prefix": "wuec",
"description": "Wait Until Element Contains",
"body": "Wait Until Element Contains ${1:\\${locator\\}} ${2:\\${text\\}} ${3:\\${timeout=None\\}} ${4:\\${error=None\\}}"
},
"wuednc": {
"prefix": "wuednc",
"description": "Wait Until Element Does Not Contain",
"body": "Wait Until Element Does Not Contain ${1:\\${locator\\}} ${2:\\${text\\}} ${3:\\${timeout=None\\}} ${4:\\${error=None\\}}"
},
"wueie": {
"prefix": "wueie",
"description": "Wait Until Element Is Enabled",
"body": "Wait Until Element Is Enabled ${1:\\${locator\\}} ${2:\\${timeout=None\\}} ${3:\\${error=None\\}}"
},
"wueinv": {
"prefix": "wueinv",
"description": "Wait Until Element Is Not Visible",
"body": "Wait Until Element Is Not Visible ${1:\\${locator\\}} ${2:\\${timeout=None\\}} ${3:\\${error=None\\}}"
},
"wueiv": {
"prefix": "wueiv",
"description": "Wait Until Element Is Visible",
"body": "Wait Until Element Is Visible ${1:\\${locator\\}} ${2:\\${timeout=None\\}} ${3:\\${error=None\\}}"
},
"wupc": {
"prefix": "wupc",
"description": "Wait Until Page Contains",
"body": "Wait Until Page Contains ${1:\\${text\\}} ${2:\\${timeout=None\\}} ${3:\\${error=None\\}}"
},
"wupce": {
"prefix": "wupce",
"description": "Wait Until Page Contains Element",
"body": "Wait Until Page Contains Element ${1:\\${locator\\}} ${2:\\${timeout=None\\}} ${3:\\${error=None\\}}"
},
"wupdnc": {
"prefix": "wupdnc",
"description": "Wait Until Page Does Not Contain",
"body": "Wait Until Page Does Not Contain ${1:\\${text\\}} ${2:\\${timeout=None\\}} ${3:\\${error=None\\}}"
},
"wupdnce": {
"prefix": "wupdnce",
"description": "Wait Until Page Does Not Contain Element",
"body": "Wait Until Page Does Not Contain Element ${1:\\${locator\\}} ${2:\\${timeout=None\\}} ${3:\\${error=None\\}}"
}
}
|