Action

From STIQ

Jump to: navigation, search
Actions
addSelection Add a selection to the set of selected options in a multi-select element using an option locator.
altKeyDown Press the alt key and hold it down until doAltUp() is called or a new page is loaded.
altKeyUp Release the alt key.
answerOnNextPrompt Instructs Selenium to return the specified answer string in response to the next JavaScript prompt[window.prompt()].
break Halt the currently running test and wait for the user to press the Continue button.
check Check a toggle-button (checkbox/radio).
chooseCancelOnNextConfirmation Instructs Selenium to click Cancel on the next JavaScript confirmation dialog to be raised.
click Clicks on a link, button, checkbox or radio button.
clickAt Clicks on a link, button, checkbox or radio button.
close Simulates the user clicking the "close" button in the titlebar of a popup window or tab.
controlKeyDown Press the control key and hold it down until doControlUp() is called or a new page is loaded.
controlKeyUp Release the control key
createCookie Create a new cookie whose path and domain are same as those of the current page under test, unless a specific path was explicitly designated.
deleteCookie Delete a named cookie with specified path.
doubleClick Double clicks on a link, button, checkbox or radio button.
doubleClickAt Double clicks on a link, button, checkbox or radio button.
dragAndDrop Drags an element a certain distance and then drops it.
dragAndDropToObject Drags an element and drops it onto another element.
echo Prints the specified message into the third table cell in your Selenese tables.
fireEvent Explicitly simulate an event, to trigger the corresponding "onevent" handler.
getSpeed Get execution speed (i.e. get the millisecond length of the delay following each Selenium operation).
goBack Simulates the user clicking the "back" button on their browser.
highlight Briefly changes the background color of the specified element to yellow.
keyDown Simulates a user pressing a key (without releasing it).
keyPress Simulates a user pressing and releasing a key.
keyUp Simulates a user releasing a key.
metaKeyDown Press the meta key and hold it down until metaKeyUp is called or a new page is loaded.
metaKeyUp Release the meta key.
mouseDown Simulates a user pressing the mouse button (without releasing it) on the specified element.
mouseDownAt Simulates a user pressing the mouse button (without releasing it) on the specified element.
mouseMove Simulates a user pressing the mouse button (without releasing it) on the specified element.
mouseMoveAt Simulates a user pressing the mouse button (without releasing it) on the specified element.
mouseOut Simulates a user moving the mouse pointer away from the specified element.
mouseOver Simulates a user hovering a mouse over the specified element.
mouseUp Simulates a user pressing the mouse button (without releasing it) on the specified element.
mouseUpAt Simulates a user pressing the mouse button (without releasing it) on the specified element.
open Opens the specified URL in the test frame.
openWindow Opens a popup window (if a window with that ID isn't already open).
pause Pauses the execution of the test script for the specified amount of time (noted in milliseconds).
refresh Simulates the user clicking the "Refresh" button on their browser.
removeAllSelections Unselects all of the selected options in a multi-select element.
removeSelection Remove a selection from the set of selected options in a multi-select element using an option locator.
select Select an option from a drop-down using an option locator.
selectFrame Selects a frame within the current window.
selectWindow Selects a popup window; once a popup window has been selected, all commands go to that window.
setContext Writes a message to the status bar and adds a note to the browser-side log.
setCursorPosition Moves the text cursor to the specified position in the given input element or text area.
setMouseSpeed Configure the number of pixels between "mousemove" events during dragAndDrop commands (default=10).
setSpeed Sets the execution speed of the test script to the specified amount of time (noted in milliseconds).
setTimeout Specifies the amount of time that Selenium will wait for actions to complete (noted in milliseconds).
shiftKeyDown Press the shift key and hold it down until shiftKeyUp is called or a new page is loaded.
shiftKeyUp Release the shift key.
store Stores an expression into a variable. The expression can be constructed using either variable substitution or javascript

evaluation.

submit Submit the specified form.
type Sets the value of an input field, as though a user typed it in.
typeKeys Simulates keystroke events on the specified element, as though you typed the value key-by-key.
uncheck Uncheck a toggle-button (checkbox/radio).
waitForCondition Runs the specified JavaScript snippet repeatedly until it evaluates to "true".
waitForPageToLoad Waits for a new page to load.
waitForPopUp Waits for a popup window to appear and load up.
windowFocus Gives focus to a window.
windowMaximize Resize window to take up the entire screen.
Personal tools
Noteworthy