string getAlert() |
Retrieves the message of a JavaScript alert generated during the previous action. |
array getAllButtons() |
Returns the IDs of all buttons on the page. |
array getAllFields() |
Returns the IDs of all input fields on the page. |
array getAllLinks() |
Returns the IDs of all links on the page. |
string getBodyText() |
Returns the entire text of the page. |
string getConfirmation() |
Returns the message of a JavaScript confirmation dialog generated during the previous action. |
int getCursorPosition(string $locator) |
Returns the text cursor position in the given input element or textarea. |
void setCursorPosition(string $locator, int $position) |
Moves the text cursor to the specified position in the given input element or textarea. |
string getElementAttribute(string $attributeLocator) |
Returns the value of an element attribute. |
string getEval(string $script) |
Returns the result of evaluating the specified JavaScript snippet. |
string getExpression(string $expression) |
Returns the specified expression. |
string getHtmlSource() |
Returns the entire HTML source between the opening and closing “html” tags. |
string getLocation() |
Returns the absolute URL of the current page. |
string getPrompt() |
Returns the message of a JavaScript question prompt dialog generated during the previous action. |
string getSelectedId(string $selectLocator) |
Returns option element ID for selected option in the specified select element. |
array getSelectedIds(string $selectLocator) |
Returns all option element IDs for selected options in the specified select or multi-select element. |
string getSelectedIndex(string $selectLocator) |
Returns option index (option number, starting at 0) for selected option in the specified select element. |
array getSelectedIndexes(string $selectLocator) |
Returns all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element. |
string getSelectedLabel(string $selectLocator) |
Returns all option labels (visible text) for selected options in the specified select element. |
array getSelectedLabels(string $selectLocator) |
Returns all option labels (visible text) for selected options in the specified select or multi-select element. |
string getSelectedValue(string $selectLocator) |
Returns option value (value attribute) for selected option in the specified select element. |
array getSelectedValues(string $selectLocator) |
Returns all option values (value attributes) for selected options in the specified select or multi-select element. |
array getSelectOptions(string $selectLocator) |
Returns all option labels in the specified select drop-down. |
string getTable(string $tableCellAddress) |
Returns the text from a cell of a table. |
string getText(string $locator) |
Returns the text of an element. |
string getTitle() |
Returns the title of the current page. |
string getValue(string $locator) |
Returns the (whitespace-trimmed) value of an input field (or anything else with a value parameter). |
boolean isAlertPresent() |
Determines whether an alert occured. |
boolean isChecked($locator) |
Determines whether a toggle-button (checkbox/radio) is checked. |
boolean isConfirmationPresent() |
Determines whether confirm() has been called. |
boolean isEditable($locator) |
Determines whether the specified input element is editable. |
boolean isElementPresent($locator) |
Determines whether the specified element is somewhere on the page. |
boolean isPromptPresent() |
Determines whether a prompt is present. |
boolean isSomethingSelected(string $selectLocator) |
Determines whether some option in a drop-down menu is selected. |
boolean isTextPresent(string $pattern) |
Determines whether the specified text pattern appears somewhere on the rendered page shown to the user. |
boolean isVisible($locator) |
Determines if the specified element is visible. |