Selenium IDE Complete List of Commands

  Commands Usage
1 addLocationStrategy  
2 addLocationStrategyAndWait  
3 addScript  
4 addScriptAndWait  
5 addSelection In multiselect list box, when you need to select multiple values from list box, “addSelection” command will be helpful in selenium IDE. “Select” command will select only single value from list box but “addSelection” command will add new value selection in list box means previously selected values will remain selected as it is and will add new selection.
6 addSelectionAndWait When you are adding selection into multi select list box and page reloading due to the adding selection, you need to use addSelectionAndWait command to handle page loading event. You can use addSelection if page not reloading after adding selection.
7 allowNativeXpath  
8 allowNativeXpathAndWait  
9 altKeyDown “altKeyDown” command works just like you are pressing alt key of your keyboard. It will keep pressed alt key until “altKeyUp” not executed. You can use this command when you need to perform any action by pressing alt key.
10 altKeyDownAndWait  
11 altKeyUp  
12 altKeyUpAndWait  
13 answerOnNextPrompt Sometime if you see , there is display text box with popup message to write some thing in message box. In such popup “answerOnNextPrompt” command is useful to providing answer in popup message. “answerOnNextPrompt” command will type the message whatever you want to type in popup.
14 assertAlert “assertAlert” will verify text and take action on alert box but if alert text not matches then it will stop execution.
15 assertAlertNotPresent “assertAlertNotPresent” command will becomes pass successfully if there is not any alert on page of your software web application during its execution. If there is any alert present on page during its execution then it will return ‘[error] true’ in execution log and selenium IDE will abort execution.
16 assertAlertPresent Opposite to “assertAlertNotPresent” command, “assertAlertNotPresent” command will be executed without any error if there is any alert message present on web application page. Else it will return “[error] false” in execution log.
17 assertAllButtons  
18 assertAllFields  
19 assertAllLinks  
20 assertAllWindowIds  
21 assertAllWindowNames  
22 assertAllWindowTitles  
23 assertAttribute “assertAttribute” command works same as “verifyAttribute”  command but only one difference between “assert” and “verify” in selenium is – if “assert” command will fail then selenium will not execute next command(stop execution) and if  “verify” command will fail then selenium will execute next command(not stop execution).
24 assertAttributeFromAllWindows  
25 assertBodyText  
26 assertChecked You need to provide checkbox or radio button’s Element locator in target column with “assertchecked” command. It will check and verify that targeted element is checked or not. If targeted element is not checked then selenium IDE will return “[error] false” in execution log and remaining commands will be not executed. If targeted element is already checked then command execution will becomes pass and selenium IDE will go for executing next command.
27 assertConfirmation  
28 assertConfirmationNotPresent  
29 assertConfirmationPresent  
30 assertCookie  
31 assertCookieByName  
32 assertCookieNotPresent  
33 assertCookiePresent  
34 assertCursorPosition  
35 assertEditable You can use “assertEditable” command with only and only input fields like text box, list box, drop downs etc. You can check and assert that targeted element is editable or not. If targeted element is not editable then it will stop execution of remaining selenium script.
36 assertElementHeight “assertElementHeight” and “assertElementWidth” are assertion commands and useful to verify and assert if expected height and with don’t match with actual height and width of element on software application page.
37 assertElementIndex  
38 assertElementNotPresent “assertElementPresent” command is useful to confirm element availability on page after user taking some action or navigate to some other page. It will force selenium to stop execution if targeted element not found on the page. It will continue execution if return result of condition “assertElementPresent” = false and will stop execution if return result of condition “assertElementPresent” = true.
39 assertElementPositionLeft  
40 assertElementPositionTop  
41 assertElementPresent “assertElementPresent” command is useful to confirm element availability on page after user taking some action or navigate to some other page. It will force selenium to stop execution if targeted element not found on the page. It will continue execution if return result of condition “assertElementPresent” = false and will stop execution if return result of condition “assertElementPresent” = true.
42 assertElementWidth “assertElementHeight” and “assertElementWidth” are assertion commands and useful to verify and assert if expected height and with don’t match with actual height and width of element on software application page.
43 assertEval “verifyEval” Command is very useful when you want to compare two values or string especially when you want to compare result of script with stored values in variable.
44 assertExpression  
45 assertHtmlSource  
46 assertLocation Soometimes you need to check the URL of current selected window to perform some actions. In such cases, selenium has two commands to verify the absolute URL of the current selected page. “verifyLocation” and “assertLocation”. “verifyLocation” command will just verify your trageted URL with absolute URL of the current page and returns error message if match not found and will go for executing next command.
47 assertMouseSpeed  
48 assertNotAlert  
49 assertNotAllButtons  
50 assertNotAllFields  
51 assertNotAllLinks  
52 assertNotAllWindowIds  
53 assertNotAllWindowNames  
54 assertNotAllWindowTitles  
55 assertNotAttribute  
56 assertNotAttributeFromAllWindows  
57 assertNotBodyText  
58 assertNotChecked  
59 assertNotConfirmation  
60 assertNotCookie  
61 assertNotCookieByName  
62 assertNotCursorPosition  
63 assertNotEditable  
64 assertNotElementHeight  
65 assertNotElementIndex  
66 assertNotElementPositionLeft  
67 assertNotElementPositionTop  
68 assertNotElementWidth  
69 assertNotEval  
70 assertNotExpression  
71 assertNotHtmlSource  
72 assertNotLocation  
73 assertNotMouseSpeed  
74 assertNotOrdered  
75 assertNotPrompt  
76 assertNotSelectOptions  
77 assertNotSelectedId  
78 assertNotSelectedIds  
79 assertNotSelectedIndex  
80 assertNotSelectedIndexes  
81 assertNotSelectedLabel  
82 assertNotSelectedLabels  
83 assertNotSelectedValue  
84 assertNotSelectedValues  
85 assertNotSomethingSelected  
86 assertNotSpeed  
87 assertNotTable  
88 assertNotText  
89 assertNotTitle  
90 assertNotValue  
91 assertNotVisible  
92 assertNotWhetherThisFrameMatchFrameExpression  
93 assertNotWhetherThisWindowMatchWindowExpression  
94 assertNotXpathCount  
95 assertOrdered  
96 assertPrompt  
97 assertPromptNotPresent  
98 assertPromptPresent  
99 assertSelectOptions  
100 assertSelectedId  
101 assertSelectedIds  
102 assertSelectedIndex  
103 assertSelectedIndexes  
104 assertSelectedLabel  
105 assertSelectedLabels  
106 assertSelectedValue  
107 assertSelectedValues  
108 assertSomethingSelected  
109 assertSpeed  
110 assertTable  
111 assertText  
112 assertTextNotPresent  
113 assertTextPresent  
114 assertTitle  
115 assertValue  
116 assertVisible  
117 assertWhetherThisFrameMatchFrameExpression  
118 assertWhetherThisWindowMatchWindowExpression  
119 assertXpathCount  
120 assignId  
121 assignIdAndWait  
122 break  
123 captureEntirePageScreenshot  
124 captureEntirePageScreenshotAndWait  
125 check  
126 checkAndWait  
127 chooseCancelOnNextConfirmation  
128 chooseOkOnNextConfirmation  
129 chooseOkOnNextConfirmationAndWait  
130 click  
131 clickAndWait  
132 clickAt  
133 clickAtAndWait  
134 close  
135 contextMenu  
136 contextMenuAndWait  
137 contextMenuAt  
138 contextMenuAtAndWait  
139 controlKeyDown  
140 controlKeyDownAndWait  
141 controlKeyUp  
142 controlKeyUpAndWait  
143 createCookie  
144 createCookieAndWait  
145 deleteAllVisibleCookies  
146 deleteAllVisibleCookiesAndWait  
147 deleteCookie  
148 deleteCookieAndWait  
149 deselectPopUp  
150 deselectPopUpAndWait  
151 doubleClick  
152 doubleClickAndWait  
153 doubleClickAt  
154 doubleClickAtAndWait  
155 dragAndDrop  
156 dragAndDropAndWait  
157 dragAndDropToObject  
158 dragAndDropToObjectAndWait  
159 dragdrop  
160 dragdropAndWait  
161 echo  
162 fireEvent  
163 fireEventAndWait  
164 focus  
165 focusAndWait  
166 goBack  
167 goBackAndWait  
168 highlight  
169 highlightAndWait  
170 ignoreAttributesWithoutValue  
171 ignoreAttributesWithoutValueAndWait  
172 keyDown  
173 keyDownAndWait  
174 keyPress  
175 keyPressAndWait  
176 keyUp  
177 keyUpAndWait  
178 metaKeyDown  
179 metaKeyDownAndWait  
180 metaKeyUp  
181 metaKeyUpAndWait  
182 mouseDown  
183 mouseDownAndWait  
184 mouseDownAt  
185 mouseDownAtAndWait  
186 mouseDownRight  
187 mouseDownRightAndWait  
188 mouseDownRightAt  
189 mouseDownRightAtAndWait  
190 mouseMove  
191 mouseMoveAndWait  
192 mouseMoveAt  
193 mouseMoveAtAndWait  
194 mouseOut  
195 mouseOutAndWait  
196 mouseOver  
197 mouseOverAndWait  
198 mouseUp  
199 mouseUpAndWait  
200 mouseUpAt  
201 mouseUpAtAndWait  
202 mouseUpRight  
203 mouseUpRightAndWait  
204 mouseUpRightAt  
205 mouseUpRightAtAndWait  
206 open  
207 openWindow  
208 openWindowAndWait  
209 pause  
210 refresh  
211 refreshAndWait  
212 removeAllSelections  
213 removeAllSelectionsAndWait  
214 removeScript  
215 removeScriptAndWait  
216 removeSelection  
217 removeSelectionAndWait  
218 rollup  
219 rollupAndWait  
220 runScript  
221 runScriptAndWait  
222 select  
223 selectAndWait  
224 selectFrame  
225 selectPopUp  
226 selectPopUpAndWait  
227 selectWindow  
228 sendKeys  
229 setBrowserLogLevel  
230 setBrowserLogLevelAndWait  
231 setCursorPosition  
232 setCursorPositionAndWait  
233 setMouseSpeed  
234 setMouseSpeedAndWait  
235 setSpeed  
236 setSpeedAndWait  
237 setTimeout  
238 shiftKeyDown  
239 shiftKeyDownAndWait  
240 shiftKeyUp  
241 shiftKeyUpAndWait  
242 store  
243 storeAlert  
244 storeAlertPresent  
245 storeAllButtons  
246 storeAllFields  
247 storeAllLinks  
248 storeAllWindowIds  
249 storeAllWindowNames  
250 storeAllWindowTitles  
251 storeAttribute  
252 storeAttributeFromAllWindows  
253 storeBodyText  
254 storeChecked  
255 storeConfirmation  
256 storeConfirmationPresent  
257 storeCookie  
258 storeCookieByName  
259 storeCookiePresent  
260 storeCursorPosition  
261 storeEditable  
262 storeElementHeight  
263 storeElementIndex  
264 storeElementPositionLeft  
265 storeElementPositionTop  
266 storeElementPresent  
267 storeElementWidth  
268 storeEval  
269 storeExpression  
270 storeHtmlSource  
271 storeLocation  
272 storeMouseSpeed  
273 storeOrdered  
274 storePrompt  
275 storePromptPresent  
276 storeSelectOptions  
277 storeSelectedId  
278 storeSelectedIds  
279 storeSelectedIndex  
280 storeSelectedIndexes  
281 storeSelectedLabel  
282 storeSelectedLabels  
283 storeSelectedValue  
284 storeSelectedValues  
285 storeSomethingSelected  
286 storeSpeed  
287 storeTable  
288 storeText  
289 storeTextPresent  
290 storeTitle  
291 storeValue  
292 storeVisible  
293 storeWhetherThisFrameMatchFrameExpression  
294 storeWhetherThisWindowMatchWindowExpression  
295 storeXpathCount  
296 submit  
297 submitAndWait  
298 type  
299 typeAndWait  
300 typeKeys  
301 typeKeysAndWait  
302 uncheck  
303  uncheckAndWait  
304 useXpathLibrary  
305 useXpathLibraryAndWait  
306 verifyAlert  
307 verifyAlertNotPresent  
308 verifyAlertPresent  
309 verifyAllButtons  
310 verifyAllFields  
311 verifyAllLinks  
312 verifyAllWindowIds  
313 verifyAllWindowNames  
314 verifyAllWindowTitles  
315 verifyAttribute  
316 verifyAttributeFromAllWindows  
317 verifyBodyText  
318 verifyChecked  
319 verifyConfirmation  
320 verifyConfirmationNotPresent  
321 verifyConfirmationPresent  
322 verifyCookie  
323 verifyCookieByName  
324 verifyCookieNotPresent  
325 verifyCookiePresent  
326 verifyCursorPosition  
327 verifyEditable  
328 verifyElementHeight  
329 verifyElementIndex  
330 verifyElementNotPresent  
331 verifyElementPositionLeft  
332 verifyElementPositionTop  
333 verifyElementPresent  
334 verifyElementWidth  
335 verifyEval  
336 verifyExpression  
337 verifyHtmlSource  
338 verifyLocation  
339 verifyMouseSpeed  
340 verifyNotAlert  
341 verifyNotAllButtons  
342 verifyNotAllFields  
343 verifyNotAllLinks  
344 verifyNotAllWindowIds  
345 verifyNotAllWindowNames  
346 verifyNotAllWindowTitles  
347 verifyNotAttribute  
348 verifyNotAttributeFromAllWindows  
349 verifyNotBodyText  
350 verifyNotChecked  
351 verifyNotConfirmation  
352 verifyNotCookie  
353 verifyNotCookieByName  
354 verifyNotCursorPosition  
355 verifyNotEditable  
356 verifyNotElementHeight  
357 verifyNotElementIndex  
358 verifyNotElementPositionLeft  
359 verifyNotElementPositionTop  
360 verifyNotElementWidth  
361 verifyNotEval  
362 verifyNotExpression  
363 verifyNotHtmlSource  
364 verifyNotLocation  
365 verifyNotMouseSpeed  
366 verifyNotOrdered  
367 verifyNotPrompt  
368 verifyNotSelectOptions  
369 verifyNotSelectedId  
370 verifyNotSelectedIds  
371 verifyNotSelectedIndex  
372 verifyNotSelectedIndexes  
373 verifyNotSelectedLabel  
374 verifyNotSelectedLabels  
375 verifyNotSelectedValue  
376 verifyNotSelectedValues  
377 verifyNotSomethingSelected  
378 verifyNotSpeed  
379 verifyNotTable  
380 verifyNotText  
381 verifyNotTitle  
382 verifyNotValue  
383 verifyNotVisible  
384 verifyNotWhetherThisFrameMatchFrameExpression  
385 verifyNotWhetherThisWindowMatchWindowExpression  
386 verifyNotXpathCount  
387 verifyOrdered  
388 verifyPrompt  
389 verifyPromptNotPresent  
390 verifyPromptPresent  
391 verifySelectOptions  
392 verifySelectedId  
393 verifySelectedIds  
394 verifySelectedIndex  
395 verifySelectedLabel  
396 verifySelectedLabels  
397 verifySelectedValue  
398 verifySelectedValues  
399 verifySomethingSelected  
400 verifySpeed  
401 verifyTable  
402 verifyText  
403 verifyTextNotPresent  
404 verifyTextPresent  
405 verifyTitle  
406 verifyValue  
407 verifyVisible  
408 verifyWhetherThisFrameMatchFrameExpression  
409 verifyWhetherThisWindowMatchWindowExpression  
410 verifyXpathCount  
411 waitForAlert  
412 waitForAlertNotPresent  
413 waitForAlertPresent  
414 waitForAllButtons  
415 waitForAllFields  
416 waitForAllLinks  
417 waitForAllWindowIds  
418 waitForAllWindowNames  
419 waitForAllWindowTitles  
420 waitForAttribute  
421 waitForAttributeFromAllWindows  
422 waitForBodyText  
423 waitForChecked  
424 waitForCondition  
425 waitForConfirmation  
426 waitForConfirmationNotPresent  
427 waitForConfirmationPresent  
428 waitForCookie  
429 waitForCookieByName  
430 waitForCookieNotPresent  
431 waitForCookiePresent  
432 waitForCursorPosition  
433 waitForEditable  
434 waitForElementHeight  
435 waitForElementIndex  
436 waitForElementNotPresent  
437 waitForElementPositionLeft  
438 waitForElementPositionTop  
439 waitForElementPresent  
440 waitForElementWidth  
441 waitForEval  
442 waitForExpression  
443 waitForFrameToLoad  
444 waitForHtmlSource  
445 waitForLocation  
446 waitForMouseSpeed  
447 waitForNotAlert  
448 waitForNotAllButtons  
449 waitForNotAllFields  
450 waitForNotAllLinks  
451 waitForNotAllWindowIds  
452 waitForNotAllWindowNames  
453 waitForNotAllWindowTitles  
454 waitForNotAttribute  
455 waitForNotAttributeFromAllWindows  
456 waitForNotBodyText  
457 waitForNotChecked  
458 waitForNotConfirmation  
459 waitForNotCookie  
460 waitForNotCookieByName  
461 waitForNotCursorPosition  
462 waitForNotEditable  
463 waitForNotElementHeight  
464 waitForNotElementIndex  
465 waitForNotElementPositionLeft  
466 waitForNotElementPositionTop  
467 waitForNotElementWidth  
468 waitForNotEval  
469 waitForNotExpression  
470 waitForNotHtmlSource  
471 waitForNotLocation  
472 waitForNotMouseSpeed  
473 waitForNotOrdered  
474 waitForNotPrompt  
475 waitForNotSelectOptions  
476 waitForNotSelectedId  
477 waitForNotSelectedIds  
478 waitForNotSelectedIndex  
479 waitForNotSelectedIndexes  
480 waitForNotSelectedLabel  
481 waitForNotSelectedLabels  
482 waitForNotSelectedValue  
483 waitForNotSelectedValues  
484 waitForNotSomethingSelected  
485 waitForNotSpeed  
486 waitForNotTable  
487 waitForNotText  
488 waitForNotTitle  
489 waitForNotValue  
490 waitForNotVisible  
491 waitForNotWhetherThisFrameMatchFrameExpression  
492 waitForNotWhetherThisWindowMatchWindowExpression  
493 waitForNotXpathCount  
494 waitForOrdered  
495 waitForPageToLoad  
496 waitForPopUp  
497 waitForPrompt  
498 waitForPromptNotPresent  
499 waitForPromptPresent  
500 waitForSelectOptions  
501 waitForSelectedId  
502 waitForSelectedIds  
503 waitForSelectedIndex  
504 waitForSelectedIndexes  
505 waitForSelectedLabel  
506 waitForSelectedLabels  
507 waitForSelectedValue  
508 waitForSelectedValues  
509 waitForSomethingSelected  
510 waitForSpeed  
511 waitForTable  
512 waitForText  
513 waitForTextNotPresent  
514 waitForTextPresent  
515 waitForTitle  
516 waitForValue  
517 waitForVisible  
518 waitForWhetherThisFrameMatchFrameExpression  
519 waitForWhetherThisWindowMatchWindowExpression  
520 waitForXpathCount  
521 windowFocus  
522 windowFocusAndWait  
523 windowMaximize  
524 windowMaximizeAndWait

Leave a Reply

Your email address will not be published.