## [Selenium] element index

### Package indexes

- Testing_Selenium

All elements
_
top

__construct
  Testing_Selenium::__construct() in Selenium.php
  Constructor

a
top

addLocationStrategy
  Testing_Selenium::addLocationStrategy() in Selenium.php
  Defines a new function for Selenium to locate elements on the page.
addScript
  Testing_Selenium::addScript() in Selenium.php
  Loads script content into a new script tag in the Selenium document. This
addSelection
  Testing_Selenium::addSelection() in Selenium.php
  Add a selection to the set of selected options in a multi-select element using an option locator.
allowNativeXpath
  Testing_Selenium::allowNativeXpath() in Selenium.php
  Specifies whether Selenium should use the native in-browser implementation of XPath (if any native version is available); if you pass "false" to this function, we will always use our pure-JavaScript xpath library.
altKeyDown
  Testing_Selenium::altKeyDown() in Selenium.php
  Press the alt key and hold it down until doAltUp() is called or a new page is loaded.
altKeyUp
  Testing_Selenium::altKeyUp() in Selenium.php
  Release the alt key.
answerOnNextPrompt
  Testing_Selenium::answerOnNextPrompt() in Selenium.php
  Instructs Selenium to return the specified answer string in response to the next JavaScript prompt [window.prompt()].
assignId
  Testing_Selenium::assignId() in Selenium.php
  Temporarily sets the "id" attribute of the specified element, so you can locate it in the future using its ID rather than a slow/complicated XPath. This ID will disappear once the page is reloaded.
attachFile
  Testing_Selenium::attachFile() in Selenium.php
  Sets a file input (upload) field to the file listed in fileLocator

c
top

captureEntirePageScreenshot
  Testing_Selenium::captureEntirePageScreenshot() in Selenium.php
  Saves the entire contents of the current window canvas to a PNG file.
captureEntirePageScreenshotToString
  Testing_Selenium::captureEntirePageScreenshotToString() in Selenium.php
  Downloads a screenshot of the browser current window canvas to a based 64 encoded PNG file. The entire windows canvas is captured, including parts rendered outside of the current view port.
captureScreenshot
  Testing_Selenium::captureScreenshot() in Selenium.php
  Captures a PNG screenshot to the specified file.
captureScreenshotToString
  Testing_Selenium::captureScreenshotToString() in Selenium.php
  Capture a PNG screenshot. It then returns the file as a base 64 encoded string.
check
  Testing_Selenium::check() in Selenium.php
  Check a toggle-button (checkbox/radio)
chooseCancelOnNextConfirmation
  Testing_Selenium::chooseCancelOnNextConfirmation() in Selenium.php
  <p>
chooseOkOnNextConfirmation
  Testing_Selenium::chooseOkOnNextConfirmation() in Selenium.php
  <p>
click
  Testing_Selenium::click() in Selenium.php
  Clicks on a link, button, checkbox or radio button. If the click action causes a new page to load (like a link usually does), call waitForPageToLoad.
clickAt
  Testing_Selenium::clickAt() in Selenium.php
  Clicks on a link, button, checkbox or radio button. If the click action causes a new page to load (like a link usually does), call waitForPageToLoad.
close
  Testing_Selenium::close() in Selenium.php
  Simulates the user clicking the "close" button in the titlebar of a popup window or tab.
contextMenu
  Testing_Selenium::contextMenu() in Selenium.php
  Simulates opening the context menu for the specified element (as might happen if the user "right-clicked" on the element).
contextMenuAt
  Testing_Selenium::contextMenuAt() in Selenium.php
  Simulates opening the context menu for the specified element (as might happen if the user "right-clicked" on the element).
controlKeyDown
  Testing_Selenium::controlKeyDown() in Selenium.php
  Press the control key and hold it down until doControlUp() is called or a new page is loaded.
controlKeyUp
  Testing_Selenium::controlKeyUp() in Selenium.php
  Release the control key.
createCookie
  Testing_Selenium::createCookie() in Selenium.php
  Create a new cookie whose path and domain are same with those of current page under test, unless you specified a path for this cookie explicitly.

d
top

deleteAllVisibleCookies
  Testing_Selenium::deleteAllVisibleCookies() in Selenium.php
  Calls deleteCookie with recurse=true on all cookies visible to the current page.
deleteCookie
  Testing_Selenium::deleteCookie() in Selenium.php
  Delete a named cookie with specified path and domain. Be careful; to delete a cookie, you need to delete it using the exact same path and domain that were used to create the cookie.
deselectPopUp
  Testing_Selenium::deselectPopUp() in Selenium.php
  Selects the main window. Functionally equivalent to using
  1. selectWindow()
  and specifying no value for
  1. windowID
  .
doCommand
  Testing_Selenium::doCommand() in Selenium.php
doubleClick
  Testing_Selenium::doubleClick() in Selenium.php
  Double clicks on a link, button, checkbox or radio button. If the double click action causes a new page to load (like a link usually does), call waitForPageToLoad.
doubleClickAt
  Testing_Selenium::doubleClickAt() in Selenium.php
  Doubleclicks on a link, button, checkbox or radio button. If the action causes a new page to load (like a link usually does), call waitForPageToLoad.
dragAndDrop
  Testing_Selenium::dragAndDrop() in Selenium.php
  Drags an element a certain distance and then drops it
dragAndDropToObject
  Testing_Selenium::dragAndDropToObject() in Selenium.php
  Drags an element and drops it on another element
dragdrop
  Testing_Selenium::dragdrop() in Selenium.php
  deprecated - use dragAndDrop instead

f
top

fireEvent
  Testing_Selenium::fireEvent() in Selenium.php
  Explicitly simulate an event, to trigger the corresponding "onevent" handler.
focus
  Testing_Selenium::focus() in Selenium.php
  Move the focus to the specified element; for example, if the element is an input field, move the cursor to that field.

g
top

getAlert
  Testing_Selenium::getAlert() in Selenium.php
  Retrieves the message of a JavaScript alert generated during the previous action, or fail if there were no alerts.
getAllButtons
  Testing_Selenium::getAllButtons() in Selenium.php
  Returns the IDs of all buttons on the page.
getAllFields
  Testing_Selenium::getAllFields() in Selenium.php
  Returns the IDs of all input fields on the page.
getAllLinks
  Testing_Selenium::getAllLinks() in Selenium.php
  Returns the IDs of all links on the page.
getAllWindowIds
  Testing_Selenium::getAllWindowIds() in Selenium.php
  Returns the IDs of all windows that the browser knows about in an array.
getAllWindowNames
  Testing_Selenium::getAllWindowNames() in Selenium.php
  Returns the names of all windows that the browser knows about in an array.
getAllWindowTitles
  Testing_Selenium::getAllWindowTitles() in Selenium.php
  Returns the titles of all windows that the browser knows about in an array.
getAttribute
  Testing_Selenium::getAttribute() in Selenium.php
  Gets the value of an element attribute. The value of the attribute may differ across browsers (this is the case for the "style" attribute, for example).
getAttributeFromAllWindows
  Testing_Selenium::getAttributeFromAllWindows() in Selenium.php
  Returns an array of JavaScript property values from all known windows having one.
getBodyText
  Testing_Selenium::getBodyText() in Selenium.php
  Gets the entire text of the page.
getConfirmation
  Testing_Selenium::getConfirmation() in Selenium.php
  Retrieves the message of a JavaScript confirmation dialog generated during the previous action.
getCookie
  Testing_Selenium::getCookie() in Selenium.php
  Return all cookies of the current page under test.
getCookieByName
  Testing_Selenium::getCookieByName() in Selenium.php
  Returns the value of the cookie with the specified name, or throws an error if the cookie is not present.
getCursorPosition
  Testing_Selenium::getCursorPosition() in Selenium.php
  Retrieves the text cursor position in the given input element or textarea; beware, this may not work perfectly on all browsers.
getElementHeight
  Testing_Selenium::getElementHeight() in Selenium.php
  Retrieves the height of an element
getElementIndex
  Testing_Selenium::getElementIndex() in Selenium.php
  Get the relative index of an element to its parent (starting from 0). The comment node and empty text node will be ignored.
getElementPositionLeft
  Testing_Selenium::getElementPositionLeft() in Selenium.php
  Retrieves the horizontal position of an element
getElementPositionTop
  Testing_Selenium::getElementPositionTop() in Selenium.php
  Retrieves the vertical position of an element
getElementWidth
  Testing_Selenium::getElementWidth() in Selenium.php
  Retrieves the width of an element
getEval
  Testing_Selenium::getEval() in Selenium.php
  Gets the result of evaluating the specified JavaScript snippet. The snippet may have multiple lines, but only the result of the last line will be returned.
getExpression
  Testing_Selenium::getExpression() in Selenium.php
  Returns the specified expression.
getHtmlSource
  Testing_Selenium::getHtmlSource() in Selenium.php
  Returns the entire HTML source between the opening and closing "html" tags.
getLocation
  Testing_Selenium::getLocation() in Selenium.php
  Gets the absolute URL of the current page.
getMouseSpeed
  Testing_Selenium::getMouseSpeed() in Selenium.php
  Returns the number of pixels between "mousemove" events during dragAndDrop commands (default=10).
getPrompt
  Testing_Selenium::getPrompt() in Selenium.php
  Retrieves the message of a JavaScript question prompt dialog generated during the previous action.
getSelectedId
  Testing_Selenium::getSelectedId() in Selenium.php
  Gets option element ID for selected option in the specified select element.
getSelectedIds
  Testing_Selenium::getSelectedIds() in Selenium.php
  Gets all option element IDs for selected options in the specified select or multi-select element.
getSelectedIndex
  Testing_Selenium::getSelectedIndex() in Selenium.php
  Gets option index (option number, starting at 0) for selected option in the specified select element.
getSelectedIndexes
  Testing_Selenium::getSelectedIndexes() in Selenium.php
  Gets all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element.
getSelectedLabel
  Testing_Selenium::getSelectedLabel() in Selenium.php
  Gets option label (visible text) for selected option in the specified select element.
getSelectedLabels
  Testing_Selenium::getSelectedLabels() in Selenium.php
  Gets all option labels (visible text) for selected options in the specified select or multi-select element.
getSelectedValue
  Testing_Selenium::getSelectedValue() in Selenium.php
  Gets option value (value attribute) for selected option in the specified select element.
getSelectedValues
  Testing_Selenium::getSelectedValues() in Selenium.php
  Gets all option values (value attributes) for selected options in the specified select or multi-select element.
getSelectOptions
  Testing_Selenium::getSelectOptions() in Selenium.php
  Gets all option labels in the specified select drop-down.
getSpeed
  Testing_Selenium::getSpeed() in Selenium.php
  Get execution speed (i.e., get the millisecond length of the delay following each selenium operation). By default, there is no such delay, i.e., the delay is 0 milliseconds.
getString
  Testing_Selenium::getString() in Selenium.php
getTable
  Testing_Selenium::getTable() in Selenium.php
  Gets the text from a cell of a table. The cellAddress syntax tableLocator.row.column, where row and column start at 0.
getText
  Testing_Selenium::getText() in Selenium.php
  Gets the text of an element. This works for any element that contains text. This command uses either the textContent (Mozilla-like browsers) or the innerText (IE-like browsers) of the element, which is the rendered text shown to the user.
getTitle
  Testing_Selenium::getTitle() in Selenium.php
  Gets the title of the current page.
getValue
  Testing_Selenium::getValue() in Selenium.php
  Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter).
getWhetherThisFrameMatchFrameExpression
  Testing_Selenium::getWhetherThisFrameMatchFrameExpression() in Selenium.php
  Determine whether current/locator identify the frame containing this running code.
getWhetherThisWindowMatchWindowExpression
  Testing_Selenium::getWhetherThisWindowMatchWindowExpression() in Selenium.php
  Determine whether currentWindowString plus target identify the window containing this running code.
getXpathCount
  Testing_Selenium::getXpathCount() in Selenium.php
  Returns the number of nodes that match the specified xpath, eg. "//table" would give the number of tables.
goBack
  Testing_Selenium::goBack() in Selenium.php
  Simulates the user clicking the "back" button on their browser.

h
top

highlight
  Testing_Selenium::highlight() in Selenium.php
  Briefly changes the backgroundColor of the specified element yellow. Useful for debugging.

i
top

ignoreAttributesWithoutValue
  Testing_Selenium::ignoreAttributesWithoutValue() in Selenium.php
  Specifies whether Selenium will ignore xpath attributes that have no value, i.e. are the empty string, when using the non-native xpath evaluation engine. You'd want to do this for performance reasons in IE.
isAlertPresent
  Testing_Selenium::isAlertPresent() in Selenium.php
  Has an alert occurred?
isChecked
  Testing_Selenium::isChecked() in Selenium.php
  Gets whether a toggle-button (checkbox/radio) is checked. Fails if the specified element doesn't exist or isn't a toggle-button.
isConfirmationPresent
  Testing_Selenium::isConfirmationPresent() in Selenium.php
  Has confirm() been called?
isCookiePresent
  Testing_Selenium::isCookiePresent() in Selenium.php
  Returns true if a cookie with the specified name is present, or false otherwise.
isEditable
  Testing_Selenium::isEditable() in Selenium.php
  Determines whether the specified input element is editable, ie hasn't been disabled.
isElementPresent
  Testing_Selenium::isElementPresent() in Selenium.php
  Verifies that the specified element is somewhere on the page.
isOrdered
  Testing_Selenium::isOrdered() in Selenium.php
  Check if these two elements have same parent and are ordered siblings in the DOM. Two same elements will not be considered ordered.
isPromptPresent
  Testing_Selenium::isPromptPresent() in Selenium.php
  Has a prompt occurred?
isSomethingSelected
  Testing_Selenium::isSomethingSelected() in Selenium.php
  Determines whether some option in a drop-down menu is selected.
isTextPresent
  Testing_Selenium::isTextPresent() in Selenium.php
  Verifies that the specified text pattern appears somewhere on the rendered page shown to the user.
isVisible
  Testing_Selenium::isVisible() in Selenium.php
  Determines if the specified element is visible. An

k
top

keyDown
  Testing_Selenium::keyDown() in Selenium.php
  Simulates a user pressing a key (without releasing it yet).
keyDownNative
  Testing_Selenium::keyDownNative() in Selenium.php
  Simulates a user pressing a key (without releasing it yet) by sending a native operating system keystroke.
keyPress
  Testing_Selenium::keyPress() in Selenium.php
  Simulates a user pressing and releasing a key.
keyPressNative
  Testing_Selenium::keyPressNative() in Selenium.php
  Simulates a user pressing and releasing a key by sending a native operating system keystroke.
keyUp
  Testing_Selenium::keyUp() in Selenium.php
  Simulates a user releasing a key.
keyUpNative
  Testing_Selenium::keyUpNative() in Selenium.php
  Simulates a user releasing a key by sending a native operating system keystroke.

m
top

metaKeyDown
  Testing_Selenium::metaKeyDown() in Selenium.php
  Press the meta key and hold it down until doMetaUp() is called or a new page is loaded.
metaKeyUp
  Testing_Selenium::metaKeyUp() in Selenium.php
  Release the meta key.
mouseDown
  Testing_Selenium::mouseDown() in Selenium.php
  Simulates a user pressing the left mouse button (without releasing it yet) on the specified element.
mouseDownAt
  Testing_Selenium::mouseDownAt() in Selenium.php
  Simulates a user pressing the left mouse button (without releasing it yet) at the specified location.
mouseDownRight
  Testing_Selenium::mouseDownRight() in Selenium.php
  Simulates a user pressing the right mouse button (without releasing it yet) on the specified element.
mouseDownRightAt
  Testing_Selenium::mouseDownRightAt() in Selenium.php
  Simulates a user pressing the right mouse button (without releasing it yet) at the specified location.
mouseMove
  Testing_Selenium::mouseMove() in Selenium.php
  Simulates a user pressing the mouse button (without releasing it yet) on the specified element.
mouseMoveAt
  Testing_Selenium::mouseMoveAt() in Selenium.php
  Simulates a user pressing the mouse button (without releasing it yet) on the specified element.
mouseOut
  Testing_Selenium::mouseOut() in Selenium.php
  Simulates a user moving the mouse pointer away from the specified element.
mouseOver
  Testing_Selenium::mouseOver() in Selenium.php
  Simulates a user hovering a mouse over the specified element.
mouseUp
  Testing_Selenium::mouseUp() in Selenium.php
  Simulates the event that occurs when the user releases the mouse button (i.e., stops holding the button down) on the specified element.
mouseUpAt
  Testing_Selenium::mouseUpAt() in Selenium.php
  Simulates the event that occurs when the user releases the mouse button (i.e., stops holding the button down) at the specified location.
mouseUpRight
  Testing_Selenium::mouseUpRight() in Selenium.php
  Simulates the event that occurs when the user releases the right mouse button (i.e., stops holding the button down) on the specified element.
mouseUpRightAt
  Testing_Selenium::mouseUpRightAt() in Selenium.php
  Simulates the event that occurs when the user releases the right mouse button (i.e., stops holding the button down) at the specified location.

o
top

open
  Testing_Selenium::open() in Selenium.php
  Opens an URL in the test frame. This accepts both relative and absolute URLs.
openWindow
  Testing_Selenium::openWindow() in Selenium.php
  Opens a popup window (if a window with that ID isn't already open).

r
top

refresh
  Testing_Selenium::refresh() in Selenium.php
  Simulates the user clicking the "Refresh" button on their browser.
removeAllSelections
  Testing_Selenium::removeAllSelections() in Selenium.php
  Unselects all of the selected options in a multi-select element.
removeScript
  Testing_Selenium::removeScript() in Selenium.php
  Removes a script tag from the Selenium document identified by the given id. Does nothing if the referenced tag doesn't exist.
removeSelection
  Testing_Selenium::removeSelection() in Selenium.php
  Remove a selection from the set of selected options in a multi-select element using an option locator.
retrieveLastRemoteControlLogs
  Testing_Selenium::retrieveLastRemoteControlLogs() in Selenium.php
  Retrieve the last messages logged on a specific remote control. Useful for error reports, especially when running multiple remote controls in a distributed environment. The maximum number of log messages that can be retrieve is configured on remote control startup.
rollup
  Testing_Selenium::rollup() in Selenium.php
  Executes a command rollup, which is a series of commands with a unique name, and optionally arguments that control the generation of the set of commands. If any one of the rolled-up commands fails, the rollup is considered to have failed. Rollups may also contain nested rollups.
runScript
  Testing_Selenium::runScript() in Selenium.php
  Creates a new "script" tag in the body of the current test window, and

s
top

select
  Testing_Selenium::select() in Selenium.php
  Select an option from a drop-down using an option locator.
selectFrame
  Testing_Selenium::selectFrame() in Selenium.php
  Selects a frame within the current window. (You may invoke this command multiple times to select nested frames.) To select the parent frame, use "relative=parent" as a locator; to select the top frame, use "relative=top".
selectPopUp
  Testing_Selenium::selectPopUp() in Selenium.php
  Simplifies the process of selecting a popup window (and does not offer functionality beyond what
  1. selectWindow()
  already provides).
selectWindow
  Testing_Selenium::selectWindow() in Selenium.php
  Selects a popup window using a window locator; once a popup window has been selected, all commands go to that window. To select the main window again, use null as the target.
Selenium.php
  Selenium.php in Selenium.php
setBrowserLogLevel
  Testing_Selenium::setBrowserLogLevel() in Selenium.php
  Sets the threshold for browser-side logging messages; log messages beneath this threshold will be discarded.
setContext
  Testing_Selenium::setContext() in Selenium.php
  Writes a message to the status bar and adds a note to the browser-side log.
setCursorPosition
  Testing_Selenium::setCursorPosition() in Selenium.php
  Moves the text cursor to the specified position in the given input element or textarea.
setMouseSpeed
  Testing_Selenium::setMouseSpeed() in Selenium.php
  Configure the number of pixels between "mousemove" events during dragAndDrop commands (default=10).
setSpeed
  Testing_Selenium::setSpeed() in Selenium.php
  Set execution speed (i.e., set the millisecond length of a delay which will follow each selenium operation). By default, there is no such delay, i.e., the delay is 0 milliseconds.
setTimeout
  Testing_Selenium::setTimeout() in Selenium.php
  Specifies the amount of time that Selenium will wait for actions to complete.
shiftKeyDown
  Testing_Selenium::shiftKeyDown() in Selenium.php
  Press the shift key and hold it down until doShiftUp() is called or a new page is loaded.
shiftKeyUp
  Testing_Selenium::shiftKeyUp() in Selenium.php
  Release the shift key.
shutDownSeleniumServer
  Testing_Selenium::shutDownSeleniumServer() in Selenium.php
  Kills the running Selenium Server and all browser sessions. After you run this command, you will no longer be able to send commands to the server; you can't remotely start the server once it has been stopped. Normally you should prefer to run the "stop" command, which terminates the current browser session, rather than shutting down the entire server.
start
  Testing_Selenium::start() in Selenium.php
  Run the browser and set session id.
stop
  Testing_Selenium::stop() in Selenium.php
  Close the browser and set session id null
submit
  Testing_Selenium::submit() in Selenium.php
  Submit the specified form. This is particularly useful for forms without submit buttons, e.g. single-input "Search" forms.

t
top

Testing_Selenium
  Testing_Selenium in Selenium.php
  Defines an object that runs Selenium commands.
type
  Testing_Selenium::type() in Selenium.php
  Sets the value of an input field, as though you typed it in.
typeKeys
  Testing_Selenium::typeKeys() in Selenium.php
  Simulates keystroke events on the specified element, as though you typed the value key-by-key.

u
top

uncheck
  Testing_Selenium::uncheck() in Selenium.php
  Uncheck a toggle-button (checkbox/radio)
useXpathLibrary
  Testing_Selenium::useXpathLibrary() in Selenium.php
  Allows choice of one of the available libraries.

w
top

waitForCondition
  Testing_Selenium::waitForCondition() in Selenium.php
  Runs the specified JavaScript snippet repeatedly until it evaluates to "true".
waitForFrameToLoad
  Testing_Selenium::waitForFrameToLoad() in Selenium.php
  Waits for a new frame to load.
waitForPageToLoad
  Testing_Selenium::waitForPageToLoad() in Selenium.php
  Waits for a new page to load.
waitForPopUp
  Testing_Selenium::waitForPopUp() in Selenium.php
  Waits for a popup window to appear and load up.
windowFocus
  Testing_Selenium::windowFocus() in Selenium.php
  Gives focus to the currently selected window
windowMaximize
  Testing_Selenium::windowMaximize() in Selenium.php
  Resize currently selected window to take up the entire screen