Accessor and Assertion

From STIQ

Jump to: navigation, search
Each command must be prefixed with store, assert, verify, waitFor, assertNot, verifyNot, or waitForNot
Alert Retrieves the message of a JavaScript alert generated during the previous action, or fail if there were no alerts.
AlertPresent Has an alert occurred?
AllButtons Returns the IDs of all buttons on the page.
AllFields Returns the IDs of all input fields on the page.
AllLinks Returns the IDs of all links on the page.
AllWindowIds Returns the IDs of all windows that the browser knows about.
AllWindowNames Returns the names of all windows that the browser knows about.
AllWindowTitles Returns the titles of all windows that the browser knows about.
Attribute Gets the value of an element attribute.
AttributeFromAllWindows Returns every instance of some attribute from all known windows.
BodyText Gets the entire text of the page.
Checked Gets whether a toggle-button (checkbox/radio) is checked.
Confirmation Retrieves the message of a JavaScript dialog generated during the previous action.
ConfirmationPresent Has confirm() been called?
Cookie Return all cookies of the current page under test.
CursorPosition Retrieves the text cursor position in the given input element or text area.
Editable Determines whether the specified input element is editable (i.e.hasn't been disabled).
ElementHeight Retrieves the height of an element.
ElementIndex Get the relative index of an element to its parent (starting from 0).
ElementPositionLeft Retrieves the horizontal position of an element.
ElementPositionTop Retrieves the vertical position of an element.
ElementPresent Verifies that the specified element is somewhere on the page.
ElementWidth Retrieves the width of an element.
ErrorOnNext Tell Selenium to expect an error on the next command execution.
Eval Gets the result of evaluating the specified JavaScript snippet.
Expression Returns the specified expression.
FailureOnNext Tell Selenium to expect a failure on the next command execution.
HtmlSource Returns the entire HTML source between the opening and closing "html" tags.
Location Gets the absolute URL of the current page.
LogMessages Return the contents of the log.
MouseSpeed Returns the number of pixels between "mousemove" events during dragAndDrop commands (default=10).
Ordered Check if these two elements have the same parent and are ordered.
Prompt Retrieves the message of a JavaScript question prompt dialog generated during the previous action.
PromptPresent Has a prompt occurred?
Selected Verifies that the selected option of a drop-down satisfies the optionSpecifier.
SelectedId Gets option element ID for selected option in the specified select element.
SelectedIds Gets option element IDs for all selected options in the specified select or multi-select element.
SelectedIndex Gets option index (option number, starting at 0) for selected option in the specified select element.
SelectedIndexes Gets all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element.
SelectedLabel Gets option label (visible text) for selected option in the specified select element.
SelectedLabels Gets all option labels (visible text) for selected options in the specified select or multi-select element.
SelectedValue Gets option value (value attribute) for selected option in the specified select element.
SelectedValues Gets option value (value attribute) for selected option in the specified select or multi-select element.
SelectedOptions Gets all option labels in the specified select drop-down.
SomethingSelected Determines whether some option in a drop-down menu is selected.
Table Gets the text from a cell of a table.
Text Gets the text of an element.
TextPresent Verifies that the specified text pattern appears somewhere on the rendered page shown to the user.
Title Gets the title of the current page.
Value Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter).
Visible Determines if the specified element is present.
WhetherThisFrameMatchFrameExpression Determine whether current/locator identify the frame containing this running code.
WhetherThisWindowMatchWindowExpression Determine whether current WindowString plus target identify the window containing this running code.
Personal tools
Noteworthy