This page intends to be a repository for selenium extensions that may be useful to the community.
For each proposed extension, please provide
- on this page
- a name (as a h4 title)
- a short description
- a more... link pointing to the dedicated page (see below)
- on a dedicated child page, following section (using h3 titles)
- description
- example of use
- notes (optional)
- license : we recommend either the Apache License 2.0 or public domain
- download : a link to a zip archive which is attached to the page. It contains :
- a file named user-extensions.js.<extension_name> containing the code to include in user-extensions.js
- html tests that can be placed under selenium_ROOT/tests and added to testSuite in order to test the extension
- it is better if those files are contained in a directory with the name of your extension.
If you correct a bug in an extension update the package.
If you change some behaviour to a new one you should post it as a new version for this extension. (adding a note and a link to your archive)
Feel free to add a new category.
General
debug breakpoint
switches selenium to the 'Step' mode more...
alert
pop-ups an alert with a given parameter more...
extra info about failures
Stores selenium variables and 'pseudo screenshot' of the AUT at the moment of failure. Allows to view it later even if result was submitted via 'continuous integration' interface. more...
Locators
GUI Map
allows to utilize in the selenium concept of GUI map more...
selectWindow
Support Nested frame and window name is null more...
selenium-0.7-update
Run test in new window,Show report,Support Nested frame and window name is null etc.... more...
labelText
Locate a form element by its label text more...
storeTableContent
Read the content from one column of a table when a matching found in another column more...
locateCookie
Looking up a cookie value by its name. more...
locateElementByPartialId
Looking up an element by a partial match on ID. more...
Actions
getVal
Retrieves values, login details etc.. from the user-extension.js file to allow data driven testing and
the creation of more "universal" test structures more...
eval
Evaluates a snippet of JavaScript more...
include
add the content of another test to the current test more...
store...Global
store variables globally, making them available to subsequent tests more...
storeXpath, verifyXpath, assertXpath
Store Xpath evaluations and verify or assert on them (practical for count or other xpath functions) more...
selectFrame
select a frame to test the components in it more...
waitForCondition
Waits for any arbitrary condition, by running a JavaScript snippet of your choosing. Use this for your AJAX testing! more...
test flow control
Implements various forms of 'goto' command + 'While' cycle:
gotolabel
gotoIf
assertNoFailureOnNextAndGoto
while / endWhile
updateFeedback
Allows Selenium tests to give better user feedback while being executed. more...
removeCookie
Removing a cookie. more...
storeGetVars
Stores a requested variable '?var1=value1&var2=value2' from the url. more...
callWebService
Allows selenium to call a WebService more...
storeNamedCookie, storeHasCookie
Store individual named cookie values and verify or assert on them more...
waitAndActions
Generates new actions that first wait for an element to exist more...
getTableRows
Gets the number of rows in a table for use in assert, verify, waitFor, etc. more...
isOneOfPresent
Checks for at least one match for a list of locators for use in assert, verify, waitFor, etc. more...
flexTesting
Sample extension showing how to test Flash / Flex components more...
datadriven
Data driven testing with Selenium and your test data as XML. more...
httpresource
Gather data about web resources for later comparison, for example to check whether an image has changed. more...
fillform
Fill out a form from JSON data, with slightly fuzzy matching of keys. more...
Assertions
assertEquals
Asserts the equality of the compared elements or values more...
assertTextPresetCount
verifies that the specified text is present with specified count more...
assertNumericCompare
Basic numeric comparisons, between two numbers or a number (in test column a) and a range (in test column b). more...
assertMetaRobotTags
Allows you to easily check the "index" and "follow" Meta Robot tags for a page more...
reloadAndWaitFor* assertions
Adds additional commands that reload the page every 20 seconds waiting for a condition. This is used for testing interactive insertions in big environments where a change may not be visible immediately. Times out after 70 seconds. more...
assertNamedCookie, assertHasCookie
Store, verify and assert named cookie values or presence of a cookie by name more...
assertTextPresentXML
Assert/verify that the specified text pattern appears somewhere in the XML document more...
inputIsEditable
Differs from the standard isEditable in that it returns false if the element specified by the locator is not an input element. more...
Combined Extensions
qooxdooExtension
commands and locator for testing applications build with Qooxdoo more...
