summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/selenium/doc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/selenium/doc')
-rw-r--r--tests/FunctionalTests/selenium/doc/FAQ.html128
-rw-r--r--tests/FunctionalTests/selenium/doc/FAQ.txt127
-rw-r--r--tests/FunctionalTests/selenium/doc/contact.html23
-rw-r--r--tests/FunctionalTests/selenium/doc/developingdrivers.html134
-rw-r--r--tests/FunctionalTests/selenium/doc/driven.html206
-rw-r--r--tests/FunctionalTests/selenium/doc/home-page.html161
-rw-r--r--tests/FunctionalTests/selenium/doc/images/Adjacent.pngbin39287 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/Embedded.pngbin30678 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/SmallAdjacent.pngbin12067 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/SmallEmbedded.pngbin6141 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/SmallStandalone.pngbin7336 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/Standalone.pngbin38131 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/localhostAut.pngbin4474 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/localhostDriver.pngbin3865 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/localhostSelenium.pngbin3600 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/stockmeister.pngbin6514 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/images/tested-with-selenium.pngbin3294 -> 0 bytes
-rw-r--r--tests/FunctionalTests/selenium/doc/index.html30
-rw-r--r--tests/FunctionalTests/selenium/doc/jsrmi.html151
-rw-r--r--tests/FunctionalTests/selenium/doc/release-notes.html97
-rw-r--r--tests/FunctionalTests/selenium/doc/rst2html.bat3
-rw-r--r--tests/FunctionalTests/selenium/doc/seleniumReference.html1148
-rw-r--r--tests/FunctionalTests/selenium/doc/seleniumReference.txt771
-rw-r--r--tests/FunctionalTests/selenium/doc/testRunner.txt99
-rw-r--r--tests/FunctionalTests/selenium/doc/testrunner.html213
-rw-r--r--tests/FunctionalTests/selenium/doc/usage.html84
26 files changed, 0 insertions, 3375 deletions
diff --git a/tests/FunctionalTests/selenium/doc/FAQ.html b/tests/FunctionalTests/selenium/doc/FAQ.html
deleted file mode 100644
index 90299653..00000000
--- a/tests/FunctionalTests/selenium/doc/FAQ.html
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.3.5: http://docutils.sourceforge.net/" />
-<title>Selenium Frequently Asked Questions</title>
-<link rel="stylesheet" href="default.css" type="text/css" />
-</head>
-<body>
-<h1 class="title">Selenium Frequently Asked Questions</h1>
-<div class="document" id="selenium-frequently-asked-questions">
-<!-- Please note that until there's a Q&A-specific construct available,
-this FAQ will use section titles for questions. Therefore
-questions must fit on one line. The title may be a summary of the
-question, with the full question in the section body. -->
-<p>This is a work in progress. Please feel free to ask questions and/or
-provide answers; send email to the Selenium users email address at <a class="reference" href="mailto:selenium-users&#64;lists.public.thoughtworks.org">selenium-users&#64;lists.public.thoughtworks.org</a>.</p>
-<div class="contents topic" id="contents">
-<p class="topic-title first"><a name="contents">Contents</a></p>
-<ul class="auto-toc simple">
-<li><a class="reference" href="#selenium" id="id2" name="id2">1   Selenium</a><ul class="auto-toc">
-<li><a class="reference" href="#what-is-selenium-used-for" id="id3" name="id3">1.1   What is Selenium used for?</a></li>
-<li><a class="reference" href="#why-can-t-i-script-google-com" id="id4" name="id4">1.2   Why can't I script google.com?</a></li>
-<li><a class="reference" href="#how-can-i-run-my-test-against-a-foreign-or-remote-server-and-get-around-cross-site-scripting-security" id="id5" name="id5">1.3   How can I run my test against a foreign or remote server and get around cross-site scripting security?</a></li>
-<li><a class="reference" href="#how-do-you-create-test-tables" id="id6" name="id6">1.4   How do you create test tables?</a></li>
-</ul>
-</li>
-</ul>
-</div>
-<div class="section" id="selenium">
-<h1><a class="toc-backref" href="#id2" name="selenium">1   Selenium</a></h1>
-<div class="section" id="what-is-selenium-used-for">
-<h2><a class="toc-backref" href="#id3" name="what-is-selenium-used-for">1.1   What is Selenium used for?</a></h2>
-<p>It is used for functional or system testing web applications. These tests
-are also sometimes called acceptance, customer, or integration tests. Selenium is not meant for unit testing.</p>
-</div>
-<div class="section" id="why-can-t-i-script-google-com">
-<h2><a class="toc-backref" href="#id4" name="why-can-t-i-script-google-com">1.2   Why can't I script google.com?</a></h2>
-<p>Question:
-<em>I was trying to write a simple script that does a google search.
-I have been running into all sorts of problems. Does this work for you?
-Here is my test:</em> <table cellpadding="1" cellspacing="1" border="1">
- <tbody>
- <tr>
- <td rowspan="1" colspan="3">Test Type<br>
- </td>
- </tr>
- <tr>
- <td>open</td>
- <td>http://www.google.com/</td>
- <td>&nbsp;</td>
- </tr>
- <tr>
- <td>type</td>
- <td>q</td>
- <td>testing tools</td>
- </tr>
- <tr>
- <td>click</td>
- <td>submitButton</td>
- <td>&nbsp;</td>
- </tr>
- </tbody>
-</table>.</p>
-<p>Answer:
-The quick answer is that because of cross-site scripting security built into
-JavaScript engines in all browsers, you can't edit the content of a web page
-from another domain. The foreign page will probably load correctly and be visible
-in the test runner window, but Selenium won't be able to query or edit its contents.
-In other words, you can't run selenium on &quot;foo.com&quot; and
-run a test that edits values and clicks buttons against &quot;bar.com&quot;. So, in
-its current form, you can't &quot;script&quot; google.com because your script isn't
-currently hosted on google.com. When Selenium and the application you are
-testing is hosted on the same domain, however, you do not run into the
-cross-site scripting security feature/limitation.</p>
-<p>You read more about cross-site scripting here: <a class="reference" href="http://www.devarticles.com/c/a/JavaScript/JavaScript-Security/">http://www.devarticles.com/c/a/JavaScript/JavaScript-Security/</a></p>
-<p>Also, if cross-site scripting security didn't exist, be careful about your
-field and button references in your tests. The current version
-of Selenium uses the &quot;id&quot; attribute of the object you are referring to in your
-test. The search field and submit button at google.com have &quot;name&quot; attributes,
-but not not &quot;id&quot; attributes. Therefore, Selenium wouldn't be able to find the objects.
-Future versions of Selenium will be able to search for objects by more than
-just the id attribute, though.</p>
-</div>
-<div class="section" id="how-can-i-run-my-test-against-a-foreign-or-remote-server-and-get-around-cross-site-scripting-security">
-<h2><a class="toc-backref" href="#id5" name="how-can-i-run-my-test-against-a-foreign-or-remote-server-and-get-around-cross-site-scripting-security">1.3   How can I run my test against a foreign or remote server and get around cross-site scripting security?</a></h2>
-<p>There are a few ways around cross-site scripting to access a remote server.
-You could use a combination of proxying and URL rewriting in Apache to
-trick the browser into the thinking the application and the testing tool
-are coming from the same domain.</p>
-<p>Another option is to run Selenium as an &quot;HTA&quot; application, or &quot;HTML
-Application&quot; in Internet Explorer. HTA applications run in the security
-context of any trusted application on the client, so there is no cross-site
-scripting limitation. (You can find out more here:
-<a class="reference" href="http://msdn.microsoft.com/workshop/author/hta/overview/htaoverview.asp">http://msdn.microsoft.com/workshop/author/hta/overview/htaoverview.asp</a>) The
-equivalent to this &quot;security-free&quot; client on the Mozilla side of the fence
-would be to write a XUL wrapper/extension.</p>
-<p>Also, please see the answer to the related question: &quot;Why can't I script google.com&quot;.</p>
-</div>
-<div class="section" id="how-do-you-create-test-tables">
-<h2><a class="toc-backref" href="#id6" name="how-do-you-create-test-tables">1.4   How do you create test tables?</a></h2>
-<p>The developers on the Selenium project use Mozilla Composer to
-create plain HTML text files for their tests.
-By default, Mozilla Composer writes very clean HTML without any extra, unnecessary markup.</p>
-<p>Future versions of Selenium may support RST (ReStructred Text), or wiki-table
-syntax, natively. However, you are free to use another format now,
-as long as you remember to generate the HTML files from your source files,
-either during your build process or dynamically at run-time.</p>
-<table class="field-list" frame="void" rules="none">
-<col class="field-name" />
-<col class="field-body" />
-<tbody valign="top">
-<tr class="field"><th class="field-name">Author:</th><td class="field-body">Jason Huggins</td>
-</tr>
-<tr class="field"><th class="field-name">Created Date:</th><td class="field-body">11/05/2004</td>
-</tr>
-<tr class="field"><th class="field-name">Modified Date:</th><td class="field-body">11/05/2004</td>
-</tr>
-<tr class="field"><th class="field-name">Created With:</th><td class="field-body">reStructuredText: <a class="reference" href="http://docutils.sourceforge.net/rst.html">http://docutils.sourceforge.net/rst.html</a></td>
-</tr>
-</tbody>
-</table>
-</div>
-</div>
-</div>
-</body>
-</html>
diff --git a/tests/FunctionalTests/selenium/doc/FAQ.txt b/tests/FunctionalTests/selenium/doc/FAQ.txt
deleted file mode 100644
index ad9894ee..00000000
--- a/tests/FunctionalTests/selenium/doc/FAQ.txt
+++ /dev/null
@@ -1,127 +0,0 @@
-===========================================
- Selenium Frequently Asked Questions
-===========================================
-
-.. Please note that until there's a Q&A-specific construct available,
- this FAQ will use section titles for questions. Therefore
- questions must fit on one line. The title may be a summary of the
- question, with the full question in the section body.
-
-This is a work in progress. Please feel free to ask questions and/or
-provide answers; send email to the Selenium users email address at `selenium-users@lists.public.thoughtworks.org`__.
-
-.. _let us know:
-__ mailto:selenium-users@lists.public.thoughtworks.org
-
-
-.. contents::
-.. sectnum::
-
-
-
-
-Selenium
-========
-
-What is Selenium used for?
---------------------------
-
-It is used for functional or system testing web applications. These tests
-are also sometimes called acceptance, customer, or integration tests. Selenium is not meant for unit testing.
-
-
-
-Why can't I script google.com?
-------------------------------
-Question:
-*I was trying to write a simple script that does a google search.
-I have been running into all sorts of problems. Does this work for you?
-Here is my test:* |test|.
-
-.. |test| raw:: html
-
- <table cellpadding="1" cellspacing="1" border="1">
- <tbody>
- <tr>
- <td rowspan="1" colspan="3">Test Type<br>
- </td>
- </tr>
- <tr>
- <td>open</td>
- <td>http://www.google.com/</td>
- <td>&nbsp;</td>
- </tr>
- <tr>
- <td>type</td>
- <td>q</td>
- <td>testing tools</td>
- </tr>
- <tr>
- <td>click</td>
- <td>submitButton</td>
- <td>&nbsp;</td>
- </tr>
- </tbody>
- </table>
-
-Answer:
-The quick answer is that because of cross-site scripting security built into
-JavaScript engines in all browsers, you can't edit the content of a web page
-from another domain. The foreign page will probably load correctly and be visible
-in the test runner window, but Selenium won't be able to query or edit its contents.
-In other words, you can't run selenium on "foo.com" and
-run a test that edits values and clicks buttons against "bar.com". So, in
-its current form, you can't "script" google.com because your script isn't
-currently hosted on google.com. When Selenium and the application you are
-testing is hosted on the same domain, however, you do not run into the
-cross-site scripting security feature/limitation.
-
-You read more about cross-site scripting here: http://www.devarticles.com/c/a/JavaScript/JavaScript-Security/
-
-Also, if cross-site scripting security didn't exist, be careful about your
-field and button references in your tests. The current version
-of Selenium uses the "id" attribute of the object you are referring to in your
-test. The search field and submit button at google.com have "name" attributes,
-but not not "id" attributes. Therefore, Selenium wouldn't be able to find the objects.
-Future versions of Selenium will be able to search for objects by more than
-just the id attribute, though.
-
-
-How can I run my test against a foreign or remote server and get around cross-site scripting security?
-------------------------------------------------------------------------------------------------------
-
-There are a few ways around cross-site scripting to access a remote server.
-You could use a combination of proxying and URL rewriting in Apache to
-trick the browser into the thinking the application and the testing tool
-are coming from the same domain.
-
-Another option is to run Selenium as an "HTA" application, or "HTML
-Application" in Internet Explorer. HTA applications run in the security
-context of any trusted application on the client, so there is no cross-site
-scripting limitation. (You can find out more here:
-http://msdn.microsoft.com/workshop/author/hta/overview/htaoverview.asp) The
-equivalent to this "security-free" client on the Mozilla side of the fence
-would be to write a XUL wrapper/extension.
-
-Also, please see the answer to the related question: "Why can't I script google.com".
-
-
-How do you create test tables?
-------------------------------
-
-The developers on the Selenium project use Mozilla Composer to
-create plain HTML text files for their tests.
-By default, Mozilla Composer writes very clean HTML without any extra, unnecessary markup.
-
-Future versions of Selenium may support RST (ReStructred Text), or wiki-table
-syntax, natively. However, you are free to use another format now,
-as long as you remember to generate the HTML files from your source files,
-either during your build process or dynamically at run-time.
-
-
-
-:Author:
- Jason Huggins
-:Created Date: 11/05/2004
-:Modified Date: 11/05/2004
-:Created With: reStructuredText: http://docutils.sourceforge.net/rst.html \ No newline at end of file
diff --git a/tests/FunctionalTests/selenium/doc/contact.html b/tests/FunctionalTests/selenium/doc/contact.html
deleted file mode 100644
index b109444d..00000000
--- a/tests/FunctionalTests/selenium/doc/contact.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
- <meta content="text/html; charset=ISO-8859-1"
- http-equiv="content-type">
- <title>Selenium Contact</title>
-</head>
-<body>
-<p>
-For more information about Selenium, please use Confluence and the standard mailing lists below.
-<p>
-<h3>Selenium Project Wiki</h3>
-[ <a href="http://confluence.public.thoughtworks.org/display/SEL/Home">Selenium Confluence</a> ]
-<p>
-<h3>Selenium Development</h3><p>
-selenium-devel-subscribe@lists.public.thoughtworks.org<br>
-[ <a href="http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel">Subscribe/Unsubscribe</a> | <a href="http://lists.public.thoughtworks.org/pipermail/selenium-devel/">Message Archives</a> ]
-<p>
-<h3>Selenium Users</h3><p>
-selenium-users-subscribe@lists.public.thoughtworks.org<br>
-[ <a href="http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users">Subscribe/Unsubscribe</a> | <a href="http://lists.public.thoughtworks.org/pipermail/selenium-users/">Message Archives</a> ]
-</body>
-</html>
diff --git a/tests/FunctionalTests/selenium/doc/developingdrivers.html b/tests/FunctionalTests/selenium/doc/developingdrivers.html
deleted file mode 100644
index 4c2594d9..00000000
--- a/tests/FunctionalTests/selenium/doc/developingdrivers.html
+++ /dev/null
@@ -1,134 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
- <meta content="text/html; charset=ISO-8859-1"
- http-equiv="content-type">
- <title>Developing Drivers</title>
-</head>
-<body>
-<h2>Overview</h2>
-This page details important information for people developing drivers
-for Selenium.<br>
-<h2>Same Origin Policy</h2>
-This is a security issue that affects all modern browsers. It is well
-described <a
- href="http://www.mozilla.org/projects/security/components/same-origin.html">here</a>,
-but for our purposes, it constrains the way that a
-JavaScript in a browser may interoperate with other open frames and
-windows. In short, the Selenium JavaScript app must come from (or
-appear to) the same origin as the AUT.<br>
-<h2>The Driver</h2>
-The driver has a number of duties. These are typically.. <br>
-<ul>
- <li>Instantiating the web server with a dynamic app (servlets for
-Java) </li>
- <li>Launching a browser with a with a URL that makes sense for
-connecting to that server </li>
- <li>providing an API to such that commands can be routed though the
-dynamic app to the browser</li>
-</ul>
-<h2>Local, Remote and URLs<br>
-</h2>
-An application may be testable in a remote location by humans, but for
-scripted testing and the need for the driver to dynamically drive the
-browser, it is optimal for the driver to be on the same machine as that
-serving the AUT and the browser testing it.&nbsp; <br>
-<br>
-Thus, an application as deployed ...<br>
-<br>
-<img alt="http://localhost:8080/" src="images/stockmeister.png"
- style="width: 361px; height: 68px;"><br>
-<br>
-... would appear like so for the purposes of testing ...<br>
-<br>
-<img alt="http://localhost:8080/" src="images/localhostAut.png"
- style="width: 346px; height: 43px;"><br>
-<br>
-As with the standalone version of Selenium, there are a number of files
-(HTML and JavaScript) that comprise the bulk of the testing framework
-and sit in the browser as testing occurs. It makes most sense to put
-these in a virtual directory on the same server ...<br>
-<br>
-<img alt="http://localhost:8080/selenium/"
- src="images/localhostSelenium.png"
- style="width: 326px; height: 57px;"><br>
-<br>
-The dynamic webapp needs to be similarly mounted ...<br>
-<br>
-<img alt="http://localhost:8080/selenium/driver?..."
- src="images/localhostDriver.png" style="width: 318px; height: 52px;"><br>
-<br>
-As the dynamic is the link between what is happening in the browser and
-the driving process, it we need to somehow have an instance reference
-to it.&nbsp; This is easier in some languages and web servers than
-others.&nbsp; Also full programatic start/stop control over the web
-server is not always possible for some larger web servers
-implementations.<br>
-<h2>Reply/Request Architecture</h2>
-Because a browser cannot open a socket and listen on it, we must
-effectively initiate communication thru the driver on the browser side.
-Ignoring the possibilities granted by keep-alive, we simply poll from
-the browser to the server and pick up commands to process inside the
-browser.&nbsp; Results of commands are also passed back to the dynamic
-hander over the same mechanism. These are in fact done in the same HTTP
-request.&nbsp; The results from the <span style="font-style: italic;">previous</span>
-command go back as query string parameters, and the <span
- style="font-style: italic;">next</span> command is communicated in a
-text/plain document<br>
-<br>
-The previous/next business introduces some complexity on the driver
-side of the design. Namely hidden behind the API, the driver must
-manage queues for the outgoing commands and the (some time later)
-incoming responses.&nbsp; Java, until 1.5, did not have a blocking
-queue to make this easy. Most other languages did.<br>
-<h2><span style="font-weight: bold;">Selenese</span></h2>
-<table style="width: 100%;" border="1" cellpadding="2" cellspacing="2">
- <tbody>
- <tr>
- <td>Selenese is the contrived (and mostly hidden) wire language
-that the
-driver uses to speak to the browser-bot through the dynamic
-handler. It uses HTTP for its transport, and is quite
-simple. <br>
- <br>
-Responses come from the browser to the driver in a query
-string like&nbsp;&nbsp; <br>
- <br>
-&nbsp; <span style="font-family: monospace;">commandResult=OK</span>, <br>
- <br>
-Commands go from the driver to the
-browser-bot in a text/plain document:<br>
- <br>
-&nbsp; <span style="font-family: monospace;">| open | /foo/bar.html | |</span><br
- style="font-family: monospace;">
- <br>
-This two way communication is of course invisible to the observer.</td>
- <td style="width: 30%; background-color: rgb(255, 153, 102);">The
-BrowserBot, by understanding Selenese, allows a process other than the
-browser itsself to direct events on the Application Under Test.&nbsp; <br>
- <br>
-The Selenese language is simple enough to be commandable by any
-language that has an API that can handle HTTP requests. <br>
- <br>
-Thus, Selenese allows many different open, free or closed license
-drivers to interoperate with the BrowserBot.</td>
- </tr>
- </tbody>
-</table>
-<h2>Choregraphy</h2>
-The driver cleary has some fairly heavy things to do.&nbsp; It is
-important for some robustness to be built into the design. For example
-it may take a long time for the browser to be instantiated on a
-particular platform.&nbsp; It is appropriate for wait timeouts to be
-generous here.&nbsp; Similarly whilst issuing individual commands it is
-important for the driver to wait a sufficient amount of time for a
-command to execute (and its result to come back).&nbsp; For the most
-part on a localhost setup, it will be because the AUT is slow, but it
-could be because some break in the app means that there will be no
-subsequent response.&nbsp; Some timeout regime should be able to
-recover from, mark a test as failed (for reasons of timeout), and start
-again with the next test.<br>
-<br>
-<br>
-</body>
-</html>
diff --git a/tests/FunctionalTests/selenium/doc/driven.html b/tests/FunctionalTests/selenium/doc/driven.html
deleted file mode 100644
index a5f33dff..00000000
--- a/tests/FunctionalTests/selenium/doc/driven.html
+++ /dev/null
@@ -1,206 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="generator"
- content="Docutils 0.3.6: http://docutils.sourceforge.net/">
- <title>Driven Selenium Reference</title>
- <link rel="stylesheet" href="default.css" type="text/css">
-</head>
-<body>
-<div class="document" id="selenium-reference">
-<div class="section" id="test-tables">
-<h2><a name="test-tables"></a>Overview</h2>
-Driven Selenium is where the browser is under the the control of an
-adjacent process. That process is either a Java, .Net, Ruby or Python
-application and it is typically run in conjunction with a unit testing
-framework like JUnit or NUnit. Also possible, is a console application
-driving a browser interactively.<br>
-<h2>Selenium &amp; Selenese</h2>
-The key to this mode of operation is manner in which the browset-bot
-takes instruction from the driver.&nbsp; If it were possible, the
-browser-bot's javascript would open a server socket and await requests
-from the driver. It is against the rules for browser embedded
-javascript, to open ports for incoking requests as it would be a
-general breach of security for the client-OS that the browser is
-running on.&nbsp; What a browser can do is open addition requests to
-the same server that its source came from. See <a
- href="http://www.mozilla.org/projects/security/components/same-origin.html">http://www.mozilla.org/projects/security/components/same-origin.html</a>
-for more info.<br>
-<br>
-To overcome the limitations of Javascript in a browser page is the page
-continuously requests pages from the driver (which has conveniently
-opened a web server). The pages which are retrieved from the server are
-in fact plain text and each is an individual instruction from the
-driver for what the browser-bot is to do next.&nbsp; E.g. - <br>
-<br>
-&nbsp;&nbsp;&nbsp; | open | /foo/bar.html | |<br>
-<br>
-We refer to this architecture are reply/request rather than the more
-ususal request/reply.<br>
-<h2><a name="test-tables">Sample test method<br>
-</a></h2>
-The test script is one that would be recognisable to people adept with
-unit test frameworks :<br>
-<br>
-For Java -<br>
-<br>
-&nbsp; public void testOKClick() {<br>
-&nbsp;&nbsp;&nbsp; selenium.verifyTitle("First Page");<br>
-&nbsp;&nbsp;&nbsp; selenium.open("/TestPage.html");<br>
-&nbsp;&nbsp;&nbsp; selenium.click("OKButton");<br>
-&nbsp;&nbsp;&nbsp; selenium.verifyTitle("Another Page");<br>
-&nbsp; }<br>
-<br>
-The difference from normal unit testing is that as part of the startup,
-three major things have to happen:<br>
-<ol>
- <li>The test framework needs to publish a fresh copy of the
-Application Under Test (AUT).
-Selenium prefers to mount its own web server temporarily for the
-purposes of testing.</li>
- <li>The test framework needs to publish the static Selenium pages
-(refer selenium dir in TestRunner mode above) in an apparent directory
-on the same web server as (1).</li>
- <li>The test framework needs to open a browser instance and point it
-to Selenium.html served in (2) above.</li>
-</ol>
-As each of these isa fairly time consuming operation, it is best that
-all three of those happen in a one time setup mode.&nbsp; As such, and
-even though these leverage a unit testing framework, this is definately
-for acceptance or functional testing.<br>
-<h2>Example Setup<br>
-</h2>
-</div>
-<div class="section" id="continuous-integration">For Java -<br>
-<br>
-&nbsp;&nbsp; selenium = new DefaultSelenium("c:\foo\bar-web-app\");<br>
-<br>
-The above will instantiate a web server using <a
- href="http://jetty.mortbay.com/jetty/index.html">Jetty</a>, and
-publish it at http://localhost:8080. The Selenium pages will appear to
-be run from http://localhost:8080/selenium-driver. The default browser
-for Windows, Linux or Mac will be instantiated and directed to accept
-test instructions from the driver.<br>
-<br>
-The above would ususally be done in a setup method if under unit test
-control.&nbsp; See <a
- href="http://junit.sourceforge.net/doc/faq/faq.htm#organize_3">http://junit.sourceforge.net/doc/faq/faq.htm#organize_3</a>
-for advice on one time setup for Java.<br>
-&nbsp;<br>
-A more complex case could be -<br>
-<br>
-&nbsp; selenium = new DefaultSelenium(new
-TomcatCommandProcessor("c:\foo\bar-web-app"), new
-MyOperaBrowserLauncher()), <br>
-<h2>Command Reference</h2>
-&nbsp;&nbsp;&nbsp; void chooseCancelOnNextConfirmation();<br>
-&nbsp;&nbsp;&nbsp; void click(String field);<br>
-&nbsp;&nbsp;&nbsp; void clickAndWait(String field);<br>
-&nbsp;&nbsp;&nbsp; void open(String path);<br>
-&nbsp;&nbsp;&nbsp; void pause(int duration);<br>
-&nbsp;&nbsp;&nbsp; void selectAndWait(String field, String value);<br>
-&nbsp;&nbsp;&nbsp; void selectWindow(String window);<br>
-&nbsp;&nbsp;&nbsp; void setTextField(String field, String value);<br>
-&nbsp;&nbsp;&nbsp; void storeText(String element, String value);<br>
-&nbsp;&nbsp;&nbsp; void storeValue(String field, String value);<br>
-&nbsp;&nbsp;&nbsp; void testComplete();<br>
-&nbsp;&nbsp;&nbsp; void type(String field, String value);<br>
-&nbsp;&nbsp;&nbsp; void typeAndWait(String field, String value);<br>
-&nbsp;&nbsp;&nbsp; void verifyAlert(String alert);<br>
-&nbsp;&nbsp;&nbsp; void verifyAttribute(String element, String value);<br>
-&nbsp;&nbsp;&nbsp; void verifyConfirmation(String confirmation);<br>
-&nbsp;&nbsp;&nbsp; void verifyElementNotPresent(String type);<br>
-&nbsp;&nbsp;&nbsp; void verifyElementPresent(String type);<br>
-&nbsp;&nbsp;&nbsp; void verifyLocation(String location);<br>
-&nbsp;&nbsp;&nbsp; void verifySelectOptions(String field, String[]
-values);<br>
-&nbsp;&nbsp;&nbsp; void verifySelected(String field, String value);<br>
-&nbsp;&nbsp;&nbsp; void verifyTable(String table, String value);<br>
-&nbsp;&nbsp;&nbsp; void verifyText(String type, String text);<br>
-&nbsp;&nbsp;&nbsp; void verifyTextPresent(String type, String text);<br>
-&nbsp;&nbsp;&nbsp; void verifyTitle(String title);<br>
-&nbsp;&nbsp;&nbsp; void verifyValue(String field, String value);<br>
-<h2>Deployment Choices</h2>
-<h3>Embedded Web Server</h3>
-<p>
-<img alt="Picture of Browser and Driving process" src="images/Embedded.png"
- style="width: 518px; height: 302px;" align="top"><br>
-The best way to deply the driven form of Selenium is where an embedded
-web server is used. With the Java version, this could be <a
- href="http://jetty.mortbay.com/jetty/index.html">Jetty</a> or <a
- href="http://jakarta.apache.org/tomcat/">Tomcat</a>. <br>
-<br>
-In advance of a series of selenese instructions being issued to the
-browser, a web server containing the AUT and some static pages for
-Selenium itself will be programmatically started and used to
-communicate selenese instructions to the browser.&nbsp; When the driver
-process is complete the web server will be programmatically stopped. <br>
-</p>
-<p style="color: rgb(255, 0, 0);">[ For release 0.2 - this is the only
-mode that really works. Those below will be fine for 0.3 and above ]<br>
-</p>
-<h3>Adjacent Web Server</h3>
-<img alt="diagram of adjacent config" src="images/Adjacent.png"
- style="width: 534px; height: 572px;"><br>
-By adjacent we mean a process on the same machine as the driver. As
-such it would appear as localhost to browsers. <br>
-<br>
-For the .Net driver embedded is very unlikely as Internet Information
-Server is running in its own process. For the Java driver, this could
-simple be a necessary choice - i.e. the deployment target is WebLogic
-or
-WebSphere which are not too embeddable.&nbsp; <br>
-<br>
-In this scenario we suggest you deploy a small web-app alongside the
-AUT that will liase between the driver process and the browser. Of
-course, there is less fine grained control over the starting and
-stopping of the server and indeed the version of the AUT. If the web
-server supports it, it is best to copy a fresh version of the AUT to
-the underlying directory that the web-app is mapped to. We call the
-small web-app the selenese proxy. It does of course slow things down a
-fraction.<br>
-<span style="font-weight: bold;"><br>
-Selenese-proxy</span><br style="font-weight: bold;">
-<br>
-If you can deploy a copy of the selenese proxy to remote web server,
-and configure it to forward requests to your machine, then you can
-essentially script that remote web app. The downside of this is that
-that remote machine can essentially only be driven from the machine
-that is configured to drive it. i.e. it would need to be reconfigured
-to be driven from elsewhere. The upside is that you can to a great
-extent mix and match your technologies to achieve this proxying (a Java
-driver could use a Python selenese-proxy script a web-app).<br>
-<h3>Nearby Web Server <br>
-</h3>
-This is where the AUT is running on a nearby testing stack or dedicated
-development box (not the developer's own workstation).<br>
-<br>
-To achieve this the selenese proxy needs to be deployed again, this
-time to that nearby machine. It will need to be reconfigured to
-indicate that selenese traffic is either forwarded to a particular
-machine.<span style="font-weight: bold;"><br>
-</span>
-<h3>Remote Web Server <br>
-</h3>
-This is where the AUT is running on a remote machine, which you have no
-control over.&nbsp; A good example would be www.google.com.&nbsp; It is
-worth pointing out that this is of more interest to hackers or data
-harvesters than testing professionals, as what self respecting
-development group would prevent you from deploying at least the
-Selenese Proxy webapp to a testing stack.<br>
-<span style="font-weight: bold;"><br>
-Funnel</span><br style="font-weight: bold;">
-<br>
-We are writing an application called the funnel that can help us
-overcome the <a
- href="http://www.mozilla.org/projects/security/components/same-origin.html">same
-origin</a> issue that is key to Selenium. It essentially makes a
-selenium-driver/ directory appear on a remote web site for the purposes
-of the browser.<br>
-<br>
-<br>
-</div>
-</div>
-</body>
-</html>
diff --git a/tests/FunctionalTests/selenium/doc/home-page.html b/tests/FunctionalTests/selenium/doc/home-page.html
deleted file mode 100644
index 3806386b..00000000
--- a/tests/FunctionalTests/selenium/doc/home-page.html
+++ /dev/null
@@ -1,161 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
-<html>
-<head>
- <title>Selenium</title>
- <meta http-equiv="Content-Type"
- content="text/html; charset=windows-1252">
- <link href="index_files/selenium.css" type="text/css" rel="stylesheet">
-</head>
-<body>
-
-<fieldset>
- <legend><b>News</b></legend>
-
- <dl>
- <dt>September ??, 2005</dt>
- <dd>Selenium-0.6 is available
- (<a href="release-notes.html">release notes</a>)
- - <a href="http://selenium.thoughtworks.com/download.html">download now</a>
- </dd>
- </dl>
-
-</fieldset>
-
-<p>
-<b>Selenium</b> is a test tool for web applications. Selenium tests run
-<b>directly in a browsers</b>, just as real users do. And they run in
-Internet Explorer, Mozilla and Firefox on Windows, Linux and Macintosh. No
-other test tool covers such a wide array of platforms.
-</p>
-
-<ul>
- <li><span style="font-weight: bold;">Browser compatability testing.</span>
-Test your application to see if it works correctly on different
-browsers and operating systems. The same script can run on any Selenium
-platform.<br>
- </li>
- <li><span style="font-weight: bold;">System functional testing.</span>
-Create regression tests to verify application functionality and user
-acceptance.<br>
- </li>
-</ul>
-<span style="font-weight: bold;"><span style="font-weight: bold;"></span></span>Selenium
-uses a unique mechanism which allows it to run on so multiple
-platforms. Installed with your application webserver, Selenium
-automatically deploys it's JavaScript automation engine -- the Browser
-Bot -- to your browser when you point it at the Selenium install point
-on your webserver. Thus, you must have write access to the machine your
-web application server is running on to install Selenium.<br>
-<br>
-<div style="text-align: left; margin-right: 120px; margin-left: 80px;"><span
- style="font-style: italic;">"Considering the simplicity of it, it is
-almost surprising that no one has thought of doing this previously. The
-framework is simple and the code is neat and very maintainable.
-Sometimes it takes a work of genius to find the uncomplicated solution
-to a potentially complicated problem.</span><span
- style="font-style: italic;">" - </span>Antony Marcano<span
- style="font-style: italic;"></span><span style="font-style: italic;"></span><br>
-<span style="font-style: italic;"></span></div>
-<div style="text-align: left; margin-right: 120px; margin-left: 120px;"><span
- style="font-style: italic;"><br>
-</span></div>
-<div style="text-align: left; margin-right: 120px;">Selenium was
-developed by team
-of programmers and testers at
-ThoughtWorks. It is
-open-source software and can
-be downloaded and used without charge. It is currently under active
-development by our team. Stay tuned for updates and further
-announcements.<br>
-</div>
-<br>
-ThoughtWorks is a leader in Agile development methods for enterprise
-software development. Selenium is designed specifically for the
-acceptance testing requirements of Agile teams. However, teams
-using more traditional development will also find it useful.<br>
-<h2>Supported Browsers and Platforms</h2>
-<div style="text-align: left; margin-left: 80px;">
-<table style="text-align: left;" border="1"
- cellpadding="2" cellspacing="2" height="">
- <tbody>
- <tr>
- <td style="vertical-align: top;"><br>
- </td>
- <td style="vertical-align: top; font-weight: bold;">Internet
-Explorer<br>
- </td>
- <td style="vertical-align: top; font-weight: bold;">Mozilla<br>
- </td>
- <td style="vertical-align: top; font-weight: bold;">Firefox<br>
- </td>
- <td style="vertical-align: top;"><span style="font-weight: bold;">Safari</span><br>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: top; font-weight: bold;">Windows XP<br>
- </td>
- <td style="vertical-align: top;">6.0<br>
- </td>
- <td style="vertical-align: top;">1.6+, 1.7+<br>
- </td>
- <td style="vertical-align: top;">0.8+, 0.9+, 1.0<br>
- </td>
- <td style="vertical-align: top;"><br>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: top; font-weight: bold;">Red Hat Linux<br>
- </td>
- <td style="vertical-align: top;"><br>
- </td>
- <td style="vertical-align: top;">1.6+, 1.7+<br>
- </td>
- <td style="vertical-align: top;">0.8+, 0.9+, 1.0+<br>
- </td>
- <td style="vertical-align: top;"><br>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: top; font-weight: bold;">Mac OS X 10.3<br>
- </td>
- <td style="vertical-align: top;"><span style="font-style: italic;">not supported</span><br>
- </td>
- <td style="vertical-align: top;">1.6+, 1.7+<br>
- </td>
- <td style="vertical-align: top;">0.8+, 0.9+, 1.0+<br>
- </td>
- <td style="vertical-align: top;">1.3+<br>
- </td>
- </tr>
- </tbody>
-</table>
-</div>
-<span style="font-weight: bold;"><br>
-</span>
-<h2>How does Selenium Work? <br>
-</h2>
-Selenium uses JavaScript and Iframes to embed a test automation
-engine in your browser. This technique should work with any
-JavaScript-enabled browser. Because different browsers handle
-JavaScript somewhat differently, we usually have to tweak the engine to
-support new browsers.
-<h2>Where did Selenium Come From?</h2>
-Selenium grew out of a testing framework that was
-developed to acceptance-test the functionality of <a
- href="https://www.thoughtworks.com">ThoughtWorks</a>' new
-web-based time &amp; expense reporting application. It was written by
-Jason Huggins, Paul Gross and Jie Tina Wang.<br>
-<p class="paragraph">Jason
-started demoing the test framework for various colleagues. Many were
-excited about its immediate and intuitive visual feedback, as well as
-its potential to grow as a reusable testing framework for other web
-applications.</p>
-And Selenium was born.
-<br>
-<h2>Having Trouble?</h2>
-Check out our <a
- href="http://confluence.public.thoughtworks.org/display/SEL/FAQ">Frequently
-Asked Questions</a> page
-for more information.
-</body>
-</html>
diff --git a/tests/FunctionalTests/selenium/doc/images/Adjacent.png b/tests/FunctionalTests/selenium/doc/images/Adjacent.png
deleted file mode 100644
index 6da4ad66..00000000
--- a/tests/FunctionalTests/selenium/doc/images/Adjacent.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/Embedded.png b/tests/FunctionalTests/selenium/doc/images/Embedded.png
deleted file mode 100644
index 8e5967d7..00000000
--- a/tests/FunctionalTests/selenium/doc/images/Embedded.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/SmallAdjacent.png b/tests/FunctionalTests/selenium/doc/images/SmallAdjacent.png
deleted file mode 100644
index 3cf28aec..00000000
--- a/tests/FunctionalTests/selenium/doc/images/SmallAdjacent.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/SmallEmbedded.png b/tests/FunctionalTests/selenium/doc/images/SmallEmbedded.png
deleted file mode 100644
index 399acbf5..00000000
--- a/tests/FunctionalTests/selenium/doc/images/SmallEmbedded.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/SmallStandalone.png b/tests/FunctionalTests/selenium/doc/images/SmallStandalone.png
deleted file mode 100644
index f04266a0..00000000
--- a/tests/FunctionalTests/selenium/doc/images/SmallStandalone.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/Standalone.png b/tests/FunctionalTests/selenium/doc/images/Standalone.png
deleted file mode 100644
index f9b670c0..00000000
--- a/tests/FunctionalTests/selenium/doc/images/Standalone.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/localhostAut.png b/tests/FunctionalTests/selenium/doc/images/localhostAut.png
deleted file mode 100644
index 25204654..00000000
--- a/tests/FunctionalTests/selenium/doc/images/localhostAut.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/localhostDriver.png b/tests/FunctionalTests/selenium/doc/images/localhostDriver.png
deleted file mode 100644
index a904d7d4..00000000
--- a/tests/FunctionalTests/selenium/doc/images/localhostDriver.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/localhostSelenium.png b/tests/FunctionalTests/selenium/doc/images/localhostSelenium.png
deleted file mode 100644
index af527be5..00000000
--- a/tests/FunctionalTests/selenium/doc/images/localhostSelenium.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/stockmeister.png b/tests/FunctionalTests/selenium/doc/images/stockmeister.png
deleted file mode 100644
index b07aabc6..00000000
--- a/tests/FunctionalTests/selenium/doc/images/stockmeister.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/images/tested-with-selenium.png b/tests/FunctionalTests/selenium/doc/images/tested-with-selenium.png
deleted file mode 100644
index fa80b414..00000000
--- a/tests/FunctionalTests/selenium/doc/images/tested-with-selenium.png
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/selenium/doc/index.html b/tests/FunctionalTests/selenium/doc/index.html
deleted file mode 100644
index 8f7fed80..00000000
--- a/tests/FunctionalTests/selenium/doc/index.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
-
-<HTML>
-<head>
- <title>Selenium</title>
-</head>
-<body>
- <DIV id="menu">
- <UL id="menulist">
- <LI><A href="index.html">home</A></LI>
- <LI><A href="download.html">download</A></LI>
- <LI><A href="release-notes.html">&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;release&nbsp;notes</A></LI>
- <LI><A href="usage.html">usage</A></LI>
- <LI><A href="seleniumReference.html">&nbsp;&nbsp;&nbsp;&nbsp;- commands</A></LI>
- <LI><A href="testrunner.html">&nbsp;&nbsp;&nbsp;&nbsp;- test runner</A></LI>
- <LI><A href="driven.html">&nbsp;&nbsp;&nbsp;&nbsp;- driven</A></LI>
- <LI><A href="developingdrivers.html">developing drivers</A></LI>
- <LI><A href="contact.html">contact</A></LI>
- <LI><A href="demos.html">demos</A></LI>
- <LI><A href="http://confluence.public.thoughtworks.org/display/SEL">wiki</A></LI>
- <LI><A href="http://confluence.public.thoughtworks.org/display/SEL/FAQ">faq</A></LI>
- </UL>
- </DIV>
-</body>
-</HTML>
-
-
- <!-- Do not edit this page beyond its list of links current form -->
- <!-- the real front page is home-page.html -->
- <!-- which is rendered as index.html on the live website -->
diff --git a/tests/FunctionalTests/selenium/doc/jsrmi.html b/tests/FunctionalTests/selenium/doc/jsrmi.html
deleted file mode 100644
index 035f4a4e..00000000
--- a/tests/FunctionalTests/selenium/doc/jsrmi.html
+++ /dev/null
@@ -1,151 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
- <meta content="text/html; charset=ISO-8859-1"
- http-equiv="content-type">
- <title>JSRMI</title>
-</head>
-<body>
-<p>JSRMI (Javascript Remote Method Invocation) is a portable browser-neutral Javascript library that makes it possible to execute
-Javascript functions in a browser from a process external to the browser.</p>
-<p>JSRMI is not in any way tied to Java's RMI, but provides a similar mechanism. JSRMI is completely decoupled from the core Selenium Javascript API, but it can
-be used to access the Selenium API from outside the browser. </p>
-<p>All of the
-browser-side JSRMI code resides in the rmi.js script - available in the Selenium
-distribution.</p>
-<h2>Browser support</h2>
-<ul>
- <li>IE 5</li>
- <li>Mozilla 1</li>
- <li>Netscape 7</li>
- <li>Firefox 0.92</li>
- <li>Safari 1.2</li>
-</ul>
-<h2>Language support</h2>
-<ul>
- <li>Ruby</li>
-</ul>
-<p>Libraries for other languages are under way.</p>
-<h1>How do I use JSRMI from an external process?</h1>
-<h2>Ruby</h2>
-<p>Just include the jsrmi script in your own:</p>
-<p><font face="Courier New">require &quot;jsrmi&quot;<br>
-<br>
-browser = Selenium::Browser.new.proxy<br>
-someArea = browser.document.getElementById(&quot;someArea&quot;)<br>
-someArea.value = &quot;Hello from Ruby #{Time.new}&quot;</font></p>
-<p>This will modify the text of a text area in the browser. Looks strangely
-familiar to Javascript doesn't it? You can of course call the selenium API too
-if the browser has loaded the main Selenium page (which also includes the rmi.js
-script - at least that is the plan - I hope (Aslak)).</p>
-<h1>How does it work?</h1>
-<p>(You can safely skip this section if you don't care - this is gory details)</p>
-<h2>Browser side</h2>
-<p>The rmi.js script uses the
-<a href="http://developer.apple.com/internet/webcontent/xmlhttpreq.html">
-XMLHttpRequest</a> object (available in all compatible browsers) to communicate
-with the external process. It executes a GET-POST loop which is repeated ad
-infinitum - pulling JSRMI invocations from the external process with GET and
-POSTing the results back. This all happens in a separate thread, thereby having
-minimal impact on the rest of the web page - without causing a page refresh.</p>
-<p>The rmi.js script will do a HTTP GET to a URL on the same host/port as the rmi.js
-script was loaded from. The content returned from the GET (which must comply
-with the <a href="#protocol">JSRMI protocol</a>) is then translated into
-Javascript and dynamically executed via Javascript's <font face="Courier New">
-eval()</font> function.</p>
-<p>The result of the function call (typically a Javascript object) is translated
-back into the JSRMI protocol format and POSTed back to the same URL as the GET.</p>
-<h2>External process side</h2>
-<p>The external process typically consists of a library that embeds the
-following functionality:</p>
-<ul>
- <li>A HTTP server (should be light to ensure fast startup)</li>
- <li>An API that translates local invocations into the JSRMI protocol</li>
- <li>Two blocking queues:</li>
- <ul>
- <li>Output queue - HTTP GET invocations will take JSRMI protocol strings
- (representing browser side invocations) from this queue and block until
- something is available. These strings are returned to the HTTP client (The
- rmi.js script in the browser). This means a blocking GET for the JSRMI
- browser side).</li>
- <li>Input queue - HTTP POST data from the browser side JSRMI will be enqued
- here. This data represents results of browser side Javascript invocations.</li>
- </ul>
-</ul>
-<p>A local invocation should translate the invocation to a JSRMI protocol string
-and put it on the output queue (which jsrmi will GET). It should then wait for
-the result of the browser side invocation to be put back on the input queue via
-a POST from jsrmi. Finally it should translate the return value (another JSRMI
-protocol string) into a native object and return it to the caller.</p>
-<p>At any given point in time there should only be one single JSRMI protocol
-string in one of the queues - depending on the where the invocation is in its
-lifecycle.</p>
-<h2>Reference objects</h2>
-<p>JSRMI allows objects (such as browser side HTMLDocument, HTMLTextField etc)
-to be transferred back and forth. This is based on a simple mechanism where each
-object is given a unique id and maintained in a pool on each side. this pool is
-used to reference and dereference native objects back and forth from the JSRMI
-protocol strings.</p>
-<h1>Why would I use JSRMI?</h1>
-<h2>With Selenium</h2>
-<p>The Selenium browser runtime will load both selenium test scripts and the web
-pages from the web application you're testing into the browser. Modern browsers
-don't allow content to be loaded from different hosts (cross browsing security
-restrictions). A web application being tested will typically be deployed on a
-server, and therefore the selenium test scripts must be loaded from the same web
-server. Depending on who's writing the Selenium scripts and executing them, this
-may or may not be a restriction to its usage.</p>
-<p>Under some circumstances it is desirable to keep Selenium test scripts on
-your local machine (the same as the one running the browser with the Selenium
-runtime) rather than on a remote web server hosting the web application being
-tested. Some examples are:</p>
-<ul>
- <li>The edit/run cycle of selenium scripts can be cumbersome if the script has
- to be deployed to a server each time it is modified. Being able to keep the
- scripts on a different machine (such as the one on your desk) can
- significantly improve the ease of use and rapid development of tests. JSRMI
- lets you do just that.</li>
- <li>Putting in place a deployment routine for selenium script requires
- technical knowledge of the web application's build process as well as the web
- server hosting it. Many users of Selenium will not have easy access to this
- expertise. JSRMI lets these users use Selenium nevertheless.</li>
-</ul>
-<p><i>It is important to emphasise that hosting the Selenium scripts on a local
-machine would also require that the browser loads the web site being tested from
-the local machine. Aren't we creating new problems by requiring testers to
-install a full web server environment on their machines? Actually no. The JSRMI
-libraries in Ruby and Java (and those who may follow) will soon provide a light
-HTTP proxy server. The local browser will load the remote web site through this
-HTTP proxy. The browser's security restrictions are satisfied since all content
-(Selenium runtime, Selenium scripts and the remote website) is loaded through
-localhost.</i></p>
-<h2>Scripting of existing web applications</h2>
-<p>Think of all boring web form tasks you could automate with JSRMI....</p>
-<h1><a name="protocol">The JSRMI protocol</a></h1>
-<p>TODO: describe the format.</p>
-<h1>How do I implement a JSRMI client library for language X?</h1>
-<p>Start by understand the inner workings - look at the ruby implementation and
-study the javascript. (When the JSRMI protocol is better described, studying
-this code should not be necessary). </p>
-<p>It will be to implement a JSRMI client
-library in a dynamic language than a static language, because dynamic languages
-allow arbitrary messages (method invocations) to be sent to an object. Most
-dynamic languages (Ruby, Python, Groovy, Smalltalk) have a generic mechanism to
-intercept any message and an object message-&gt;JSRMI protocol translation logic is
-trivial to implement based on this.</p>
-<h2>Guidelines for static languages such as Java and C#</h2>
-<p>JSRMI clients for static languages such as Java or C# will either have to
-choose a subset of the Javascript functions and objects that you want to access,
-or implement some generic invocation mechanism that allows raw JSRMI protocol
-strings.</p>
-<p>The former is more easy to use from a user perspective, but will be
-restricted in terms of flexibility. The latter is completely generic, but
-awkward to deal with from a user perspective.</p>
-<p>The recommendation is to implement a raw interface to the JSRMI protocol and
-have a generic dynamic proxy implementation on top of that. This way the API
-support can easily be extended simply by implementing new interfaces for the
-Javascript counterparts and generate dynamic proxies on the fly as needed. </p>
-<h2>Calling functions/methods in an external process from the browser using JSRMI</h2>
-<p>This is currently not possible.</p>
-</body>
-</html> \ No newline at end of file
diff --git a/tests/FunctionalTests/selenium/doc/release-notes.html b/tests/FunctionalTests/selenium/doc/release-notes.html
deleted file mode 100644
index f7b7971b..00000000
--- a/tests/FunctionalTests/selenium/doc/release-notes.html
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
-<html>
-<head>
- <title>Release Notes</title>
- <meta http-equiv="Content-Type"
- content="text/html; charset=windows-1252">
- <link href="index_files/selenium.css" type="text/css" rel="stylesheet">
-</head>
-<body>
-
-Release information for different distributions of Selenium
-
-<h2>Selenium 0.6.0</h2>
-
-September 24, 2005
-
-<dl>
- <dt>pattern-matching</dt> <dd>Support for regular-expression and exact matching. Allow patterns to be used to match alert and confirmation messages.</dd>
- <dt>support for Javascript prompts</dt> <dd>Capture and verify prompt-messages, set up return values.</dd>
- <dt>fireEvent command</dt> <dd>Allows arbitrary events to be raised.</dd>
- <dt>logging</dt> <dd>New "pop up" log window.</dd>
-
- <dt>error-handling</dt> <dd>Better handling and reporting of internal errors.</dd>
- <dt>bug-fixes</dt> <dd>Various defects fixed.</dd>
-</dl>
-
-<p>
-See also: <a href="http://jira.public.thoughtworks.org/secure/ReleaseNote.jspa?projectId=10030&styleName=Html&version=10150">JIRA release-summary</a>.
-</p>
-
-<h2>Selenium 0.5.0</h2>
-
-June 19, 2005
-
-<dl>
- <dt>"waitForValue" command</dt><dd>Tells Selenium to wait until an input element has a specified value.</dd>
- <dt>"close" command</dt><dd>Closes an open popup window</dd>
- <dt>DOM Viewer</dt><dd>Now works in IE, show/hide works in all browsers</dd>
- <dt>Option locators</dt><dd>Can now select options based on index, value or id, as well as label</dd>
- <dt>verifyLocation</dt><dd>Now handles querystring in the url</dd>
- <dt>selectWindow</dt><dd>Can now select windows that aren't assigned to a global variable</dd>
- <dt>TestRunner hanging</dt><dd>Fixed problem found in some IE installations</dd>
-</dl>
-
-<p>
-See also: <a href="http://jira.public.thoughtworks.org/secure/ReleaseNote.jspa?projectId=10030&styleName=Html&version=10140">JIRA release-summary</a>.
-
-<h2>Selenium 0.4.0</h2>
-
-May 20, 2005
-
-<p style="font-weight: bold;">This release breaks backward compatibility in 3 ways:
- <ol>
- <li>The 'click' command now requires the 'AndWait' suffix in order to wait for a page to reload. The 'nowait' parameter is no longer supported.</li>
- <li>The previously undocumented 'link:' locator is now specified as 'link=the link text'</li>
- <li>The previously undocumented 'setVariable' command has been renamed to 'store', with slightly different semantics.</li>
- </ol>
-</p>
-
-<dl>
- <dt>Safari support</dt><dd>Most Selenium features now work in Safari!</dd>
- <dt>Click command doesn't wait</dt><dd>Use 'clickAndWait' to wait for a page reload</dd>
- <dt>Locator specificity</dt><dd>Can use prefixes ('id=', 'xpath=' etc) to specify exactly which locator strategy to use.</dd>
- <dt>Better XPath support</dt><dd>Works in Konqueror, and is faster on other platforms.</dd>
- <dt>Javascript parameters</dt><dd>All parameters can now take a javascript{...} syntax, constructing the parameter value from javascript.</dd>
- <dt>Handle 'AndWait' commands in popup windows</dt><dd>This bug has been fixed</dd>
- <dt>Bug fixes</dt><dd>Many broken things fixed.</dd>
-</dl>
-
-<p>
-See also: <a href="http://jira.public.thoughtworks.org/secure/ReleaseNote.jspa?projectId=10030&styleName=Html&version=10120">JIRA release-summary</a>.
-
-<h2>Selenium 0.3.0</h2>
-
-May 2, 2005
-
-<ul>
- <li><span style="font-weight: bold;">Standalone server for testing remote sites</span><br></li>
- <li><span style="font-weight: bold;">Improved in-browser user interface</span></li>
- <li><span style="font-weight: bold;">Zope product plug-in for Plone Content Management System</span></li>
- <li><span style="font-weight: bold;">Many, many bug fixes</span></li>
-</ul>
-
-
-<h2>Selenium 0.2</h2>
-
-Jan 20, 2005
-
-<ul>
- <li><span style="font-weight: bold;">Java and Ruby drivers</span><br>
- </li>
- <li><span style="font-weight: bold;">Cross browser capability improved</span></li>
-</ul>
-<br>
-<br>
-</body>
-</html>
diff --git a/tests/FunctionalTests/selenium/doc/rst2html.bat b/tests/FunctionalTests/selenium/doc/rst2html.bat
deleted file mode 100644
index 8fc9043f..00000000
--- a/tests/FunctionalTests/selenium/doc/rst2html.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-rem - Uses Python docutils-0.3.5
-rem - URL: http://docutils.sourceforge.net
-c:/python23/python.exe c:/python23/Scripts/rst2html.py ./seleniumReference.txt ./seleniumReference.html \ No newline at end of file
diff --git a/tests/FunctionalTests/selenium/doc/seleniumReference.html b/tests/FunctionalTests/selenium/doc/seleniumReference.html
deleted file mode 100644
index b9b186b9..00000000
--- a/tests/FunctionalTests/selenium/doc/seleniumReference.html
+++ /dev/null
@@ -1,1148 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.3.5: http://docutils.sourceforge.net/" />
-<title>Selenium Reference</title>
-<link rel="stylesheet" href="default.css" type="text/css" />
-</head>
-<body>
-<h1 class="title">Selenium Reference</h1>
-<div class="document" id="selenium-reference">
-<blockquote>
-<p>A <strong>command</strong> is what tells Selenium what to do. Selenium commands come in two 'flavors', <strong>Actions</strong> and <strong>Assertions</strong>.
-Each command call is one line in the test table of the form:</p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="39%" />
-<col width="33%" />
-<col width="28%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>command</td>
-<td>target</td>
-<td>value</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-<p><strong>Actions</strong> are commands that generally manipulate the state of the application. They do things like &quot;click this link&quot; and &quot;select that option&quot;. If an Action fails, or has an error, the execution of the current test is stopped.</p>
-<p><strong>Checks</strong> verify the state of the application conforms to what is expected. Examples include &quot;make sure the page title is X&quot; and &quot;check that this checkbox is checked&quot;. It is possible to tell Selenium to stop the test when an Assertion fails, or to simply record the failure and continue.</p>
-<p><strong>Element Locators</strong> tell Selenium which HTML element a command refers to. Many commands require an Element Locator as the &quot;target&quot; attribute. Examples of Element Locators include &quot;elementId&quot; and &quot;document.forms[0].element&quot;. These are described more clearly in the next section.</p>
-<p><strong>Patterns</strong> are used for various reasons, e.g. to specify the expected value of an input field, or identify a select option. Selenium supports various types of pattern, including regular-expressions, all of which are described in more detail below.</p>
-</blockquote>
-<div class="section" id="element-locators">
-<h1><a name="element-locators">Element Locators</a></h1>
-<blockquote>
-<p>Element Locators allow Selenium to identify which HTML element a
-command refers to. We support the following strategies for locating
-elements:</p>
-<dl>
-<dt><strong>id=</strong><em>id</em></dt>
-<dd>Select the element with the specified &#64;id attribute.</dd>
-<dt><strong>name=</strong><em>name</em></dt>
-<dd>Select the first element with the specified &#64;name attribute.</dd>
-<dt><strong>identifier=</strong><em>id</em></dt>
-<dd>Select the element with the specified &#64;id attribute. If no match is found, select the first element whose &#64;name attribute is <em>id</em>.</dd>
-<dt><strong>dom=</strong><em>javascriptExpression</em></dt>
-<dd><dl class="first last">
-<dt>Find an element using JavaScript traversal of the HTML Document Object Model. DOM locators <em>must</em> begin with &quot;document.&quot;.</dt>
-<dd><ul class="first last simple">
-<li>dom=document.forms['myForm'].myDropdown</li>
-<li>dom=document.images[56]</li>
-</ul>
-</dd>
-</dl>
-</dd>
-<dt><strong>xpath=</strong><em>xpathExpression</em></dt>
-<dd><dl class="first last">
-<dt>Locate an element using an XPath expression. XPath locators <em>must</em> begin with &quot;//&quot;.</dt>
-<dd><ul class="first last simple">
-<li>xpath=//img[&#64;alt='The image alt text']</li>
-<li>xpath=//table[&#64;id='table1']//tr[4]/td[2]</li>
-</ul>
-</dd>
-</dl>
-</dd>
-<dt><strong>link=</strong><em>textPattern</em></dt>
-<dd><dl class="first last">
-<dt>Select the link (anchor) element which contains text matching the specified <em>pattern</em>.</dt>
-<dd><ul class="first last simple">
-<li>link=The link text</li>
-</ul>
-</dd>
-</dl>
-</dd>
-</dl>
-<p>Without a locator prefix, Selenium uses:</p>
-<ul class="simple">
-<li><strong>dom</strong>, for locators starting with &quot;document.&quot;</li>
-<li><strong>xpath</strong>, for locators starting with &quot;//&quot;</li>
-<li><strong>identifier</strong>, otherwise</li>
-</ul>
-</blockquote>
-</div>
-<div class="section" id="select-option-specifiers">
-<h1><a name="select-option-specifiers">Select Option Specifiers</a></h1>
-<blockquote>
-<p>Select Option Specifiers provide different ways of specifying options of an HTML Select element (e.g. for selecting a specific option, or for asserting that the selected option satisfies a specification). There are several forms of Select Option Specifier.</p>
-<dl>
-<dt><strong>label=</strong><em>labelPattern</em></dt>
-<dd><dl class="first last">
-<dt>matches options based on their labels, i.e. the visible text. </dt>
-<dd><ul class="first last simple">
-<li>label=regexp:^[Oo]ther</li>
-</ul>
-</dd>
-</dl>
-</dd>
-<dt><strong>value=</strong><em>valuePattern</em></dt>
-<dd><dl class="first last">
-<dt>matches options based on their values. </dt>
-<dd><ul class="first last simple">
-<li>value=other</li>
-</ul>
-</dd>
-</dl>
-</dd>
-<dt><strong>id=</strong><em>id</em></dt>
-<dd><dl class="first last">
-<dt>matches options based on their ids. </dt>
-<dd><ul class="first last simple">
-<li>id=option1</li>
-</ul>
-</dd>
-</dl>
-</dd>
-<dt><strong>index=</strong><em>index</em></dt>
-<dd><dl class="first last">
-<dt>matches an option based on its index (offset from zero).</dt>
-<dd><ul class="first last simple">
-<li>index=2</li>
-</ul>
-</dd>
-</dl>
-</dd>
-</dl>
-<p>Without a prefix, the default behaviour is to only match on labels.</p>
-</blockquote>
-</div>
-<div class="section" id="string-match-patterns">
-<h1><a name="string-match-patterns">String-match Patterns</a></h1>
-<blockquote>
-<p>Various Pattern syntaxes are available for matching string values:</p>
-<dl>
-<dt><strong>glob:</strong><em>pattern</em></dt>
-<dd>Match a string against a &quot;glob&quot; (aka &quot;wildmat&quot;) pattern. &quot;Glob&quot; is a kind of limited regular-expression syntax typically used in command-line shells. In a glob pattern, &quot;*&quot; represents any sequence of characters, and &quot;?&quot; represents any single character. Glob patterns match against the entire string.</dd>
-<dt><strong>regexp:</strong><em>regexp</em></dt>
-<dd>Match a string using a regular-expression. The full power of JavaScript regular-expressions is available.</dd>
-<dt><strong>exact:</strong><em>string</em></dt>
-<dd>Match a string exactly, verbatim, without any of that fancy wildcard stuff.</dd>
-</dl>
-<p>If no pattern prefix is specified, Selenium assumes that it's a &quot;glob&quot; pattern.</p>
-</blockquote>
-</div>
-<div class="section" id="selenium-actions">
-<h1><a name="selenium-actions">Selenium Actions</a></h1>
-<blockquote>
-<p>Actions tell Selenium to do something in the application. They generally represent something a user would do.</p>
-<p>Many <strong>Actions</strong> can be called with the &quot;AndWait&quot; suffix. This suffix tells Selenium that the action will cause the browser to make a call to the server, and that Selenium should wait for a new page to load.
-The exceptions to this pattern are the &quot;open&quot; and &quot;click&quot; actions, which will both wait for a page to load by default.</p>
-<p><strong>open</strong>( <em>url</em> )</p>
-<blockquote>
-<p>Opens a URL in the test frame. This accepts both relative and absolute URLs.</p>
-<p><em>Note</em>: The URL must be on the same site as Selenium due to security restrictions in the browser (Cross Site Scripting).</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="15%" />
-<col width="65%" />
-<col width="19%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>open</td>
-<td>/mypage</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>open</td>
-<td><a class="reference" href="http://localhost/">http://localhost/</a></td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>click</strong>( <em>elementLocator</em> )</p>
-<blockquote>
-<p>Clicks on a link, button, checkbox or radio button.
-If the click action causes a new page to load (like a link usually does), use &quot;clickAndWait&quot;.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="34%" />
-<col width="51%" />
-<col width="14%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>click</td>
-<td>aCheckbox</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>clickAndWait</td>
-<td>submitButton</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>clickAndWait</td>
-<td>anyLink</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-<dl>
-<dt><strong>note:</strong></dt>
-<dd>Selenium will <em>always</em> automatically click on a popup dialog raised by the alert() or confirm()
-methods. (The exception is those raised during 'onload', which are not yet handled by Selenium).
-You <em>must</em> use [verify|assert]Alert or [verify|assert]Confirmation to tell Selenium that you expect the
-popup dialog. You may use chooseCancelOnNextConfirmation to click 'cancel' on the next confirmation
-dialog instead of clicking 'OK'.</dd>
-</dl>
-</blockquote>
-<p><strong>type</strong>( <em>inputLocator</em>, <em>value</em> )</p>
-<blockquote>
-<p>Sets the <em>value</em> of an input field, as though you typed it in.</p>
-<p>Can also be used to set the value of combo boxes, check boxes, etc. In these cases, <em>value</em> should be the value of the option selected, not the visible text.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="23%" />
-<col width="55%" />
-<col width="21%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>type</td>
-<td>nameField</td>
-<td>John Smith</td>
-</tr>
-<tr><td>typeAndWait</td>
-<td>textBoxThatSubmitsOnChange</td>
-<td>newValue</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>select</strong>( <em>dropDownLocator</em>, <em>optionSpecifier</em> )</p>
-<blockquote>
-<p>Select an option from a drop-down, based on the <em>optionSpecifier</em>. If more than one option matches the specifier (e.g. due to the use of globs like &quot;f*b*&quot;, or due to more than one option having the same label or value), then the first matches is selected.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="27%" />
-<col width="33%" />
-<col width="40%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>select</td>
-<td>dropDown</td>
-<td>Australian Dollars</td>
-</tr>
-<tr><td>select</td>
-<td>dropDown</td>
-<td>index=0</td>
-</tr>
-<tr><td>selectAndWait</td>
-<td>currencySelector</td>
-<td>value=AUD</td>
-</tr>
-<tr><td>selectAndWait</td>
-<td>currencySelector</td>
-<td>label=Aus*lian D*rs</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>selectWindow</strong>( <em>windowId</em> )</p>
-<blockquote>
-<p>Selects a popup window. Once a popup window has been selected, all commands go to that window. To select the main window again, use &quot;null&quot; as the target.</p>
-<p><strong>target:</strong> The id of the window to select.</p>
-<p><strong>value:</strong> <em>ignored</em></p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="40%" />
-<col width="43%" />
-<col width="17%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>selectWindow</td>
-<td>myPopupWindow</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>selectWindow</td>
-<td>null</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>goBack</strong>()</p>
-<blockquote>
-<p>Simulates the user clicking the &quot;back&quot; button on their browser.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="40%" />
-<col width="27%" />
-<col width="33%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>goBack</td>
-<td>&nbsp;</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>close</strong>()</p>
-<blockquote>
-<p>Simulates the user clicking the &quot;close&quot; button in the titlebar of a popup window.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="40%" />
-<col width="27%" />
-<col width="33%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>close</td>
-<td>&nbsp;</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>pause</strong>( <em>milliseconds</em> )</p>
-<blockquote>
-<p>Pauses the execution of the test script for a specified amount of time. This is useful for debugging a script or pausing to wait for some server side action.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="36%" />
-<col width="29%" />
-<col width="36%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>pause</td>
-<td>5000</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>pause</td>
-<td>2000</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>fireEvent</strong>( <em>elementLocator</em>, <em>eventName</em> )</p>
-<blockquote>
-<p>Explicitly simulate an event, to trigger the corresponding &quot;on<em>event</em>&quot; handler.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="32%" />
-<col width="39%" />
-<col width="29%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>fireEvent</td>
-<td>textField</td>
-<td>focus</td>
-</tr>
-<tr><td>fireEvent</td>
-<td>dropDown</td>
-<td>blur</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>waitForValue</strong>( <em>inputLocator</em>, <em>value</em> )</p>
-<blockquote>
-<p>Waits for a specified input (e.g. a hidden field) to have a specified <em>value</em>. Will succeed immediately if the input already has the value. This is implemented by polling for the value. Warning: can block indefinitely if the input never has the specified value.</p>
-<p><strong>example:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="32%" />
-<col width="42%" />
-<col width="26%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>waitForValue</td>
-<td>finishIndication</td>
-<td>isfinished</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>store</strong>( <em>valueToStore</em>, <em>variableName</em> )</p>
-<blockquote>
-<p>Stores a value into a variable. The value can be constructed using either variable substitution or javascript evaluation, as detailed in 'Parameter construction and Variables' (below).</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="16%" />
-<col width="70%" />
-<col width="14%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>store</td>
-<td>Mr John Smith</td>
-<td>fullname</td>
-</tr>
-<tr><td>store</td>
-<td>${title} ${firstname} ${surname}</td>
-<td>fullname</td>
-</tr>
-<tr><td>store</td>
-<td>javascript{Math.round(Math.PI * 100) / 100}</td>
-<td>PI</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>storeValue</strong>( <em>inputLocator</em>, <em>variableName</em> )</p>
-<blockquote>
-<p>Stores the value of an input field into a variable.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="36%" />
-<col width="32%" />
-<col width="32%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>storeValue</td>
-<td>userName</td>
-<td>userID</td>
-</tr>
-<tr><td>type</td>
-<td>userName</td>
-<td>${userID}</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>storeText</strong>( <em>elementLocator</em>, <em>variableName</em> )</p>
-<blockquote>
-<p>Stores the text of an element into a variable.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="26%" />
-<col width="26%" />
-<col width="48%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>storeText</td>
-<td>currentDate</td>
-<td>expectedStartDate</td>
-</tr>
-<tr><td>verifyValue</td>
-<td>startDate</td>
-<td>${expectedStartDate}</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>storeAttribute</strong>( <em>elementLocator</em>&#64;<em>attributeName</em>, <em>variableName</em> )</p>
-<blockquote>
-<p>Stores the value of an element attribute into a variable.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="31%" />
-<col width="29%" />
-<col width="41%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>storeAttribute</td>
-<td>input1&#64;class</td>
-<td>classOfInput1</td>
-</tr>
-<tr><td>verifyAttribute</td>
-<td>input2&#64;class</td>
-<td>${classOfInput1}</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>chooseCancelOnNextConfirmation</strong>()</p>
-<blockquote>
-<p>Instructs Selenium to click <strong>Cancel</strong> on the next javascript confirmation dialog to be raised. By default, the confirm function will return true, having the same effect as manually clicking OK. After running this command, the next confirmation will behave as if the user had clicked Cancel.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="75%" />
-<col width="13%" />
-<col width="13%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>chooseCancelOnNextConfirmation</td>
-<td>&nbsp;</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>answerOnNextPrompt</strong>( <em>answerString</em> )</p>
-<blockquote>
-<p>Instructs Selenium to return the specified <em>answerString</em> in response to the next prompt.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="65%" />
-<col width="23%" />
-<col width="13%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>answerOnNextPrompt</td>
-<td>Kangaroo</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-</blockquote>
-</div>
-<div class="section" id="selenium-checks">
-<h1><a name="selenium-checks">Selenium Checks</a></h1>
-<blockquote>
-<p>Checks are used to verify the state of the application. They can be used to check the value of a form field, the presense of some text, or the URL of the current page.</p>
-<p>All Selenium Checks can be used in 2 modes, &quot;assert&quot; and &quot;verify&quot;. These behave identically, except that when an &quot;assert&quot; check fails, the test is aborted. When a &quot;verify&quot; check fails, the test will continue execution.
-This allows a single &quot;assert&quot; to ensure that the application is on the correct page, followed by a bunch of &quot;verify&quot; checks to test form field values, labels, etc.</p>
-<p><strong>assertLocation</strong>( <em>relativeLocation</em> )</p>
-<blockquote>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="54%" />
-<col width="27%" />
-<col width="19%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyLocation</td>
-<td>/mypage</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertLocation</td>
-<td>/mypage</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertTitle</strong>( <em>titlePattern</em> )</p>
-<blockquote>
-<p>Verifies the title of the current page.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="48%" />
-<col width="30%" />
-<col width="22%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyTitle</td>
-<td>My Page</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertTitle</td>
-<td>My Page</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertValue</strong>( <em>inputLocator</em>, <em>valuePattern</em> )</p>
-<blockquote>
-<p>Verifies the value of an input field (or anything else with a value parameter). For checkbox/radio elements, the value will be &quot;on&quot; or &quot;off&quot; depending on whether the element is checked or not.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="23%" />
-<col width="56%" />
-<col width="21%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyValue</td>
-<td>nameField</td>
-<td>John Smith</td>
-</tr>
-<tr><td>assertValue</td>
-<td>document.forms[2].nameField</td>
-<td>John Smith</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertSelected</strong>( <em>selectLocator</em>, <em>optionSpecifier</em> )</p>
-<blockquote>
-<p>Verifies that the selected option of a drop-down satisfies the <em>optionSpecifier</em>.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="25%" />
-<col width="49%" />
-<col width="25%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifySelected</td>
-<td>dropdown2</td>
-<td>John Smith</td>
-</tr>
-<tr><td>verifySelected</td>
-<td>dropdown2</td>
-<td>value=js*123</td>
-</tr>
-<tr><td>assertSelected</td>
-<td>document.forms[2].dropDown</td>
-<td>label=J* Smith</td>
-</tr>
-<tr><td>assertSelected</td>
-<td>document.forms[2].dropDown</td>
-<td>index=0</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertSelectOptions</strong>( <em>selectLocator</em>, <em>optionLabelList</em> )</p>
-<blockquote>
-<p>Verifies the labels of all options in a drop-down against a comma-separated list. Commas in an expected option can be escaped as &quot;,&quot;.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="29%" />
-<col width="41%" />
-<col width="30%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifySelectOptions</td>
-<td>dropdown2</td>
-<td>John Smith,Dave Bird</td>
-</tr>
-<tr><td>assertSelectOptions</td>
-<td>document.forms[2].dropDown</td>
-<td>Smith\, J,Bird\, D</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertText</strong>( <em>elementLocator</em>, <em>textPattern</em> )</p>
-<blockquote>
-<p>Verifies 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.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="25%" />
-<col width="50%" />
-<col width="25%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyText</td>
-<td>statusMessage</td>
-<td>Successful</td>
-</tr>
-<tr><td>assertText</td>
-<td>//div[&#64;id='foo']//h1</td>
-<td>Successful</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertAttribute</strong>( <em>elementLocator</em>&#64;<em>attributeName</em>, <em>valuePattern</em> )</p>
-<blockquote>
-<p>Verifies the value of an element attribute.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="32%" />
-<col width="47%" />
-<col width="21%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyAttribute</td>
-<td>txt1&#64;class</td>
-<td>bigAndBold</td>
-</tr>
-<tr><td>assertAttribute</td>
-<td>document.images[0]&#64;alt</td>
-<td>alt-text</td>
-</tr>
-<tr><td>verifyAttribute</td>
-<td>//img[&#64;id='foo']/&#64;alt</td>
-<td>alt-text</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertTextPresent</strong>( <em>text</em> )</p>
-<blockquote>
-<p>Verifies that the specified text appears somewhere on the rendered page shown to the user.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="39%" />
-<col width="50%" />
-<col width="11%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyTextPresent</td>
-<td>You are now logged in.</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertTextPresent</td>
-<td>You are now logged in.</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertTextNotPresent</strong>( <em>text</em> )</p>
-<blockquote>
-Verifies that the specified text does NOT appear anywhere on the rendered page.</blockquote>
-<p><strong>assertElementPresent</strong>( <em>elementLocator</em> )</p>
-<blockquote>
-<p>Verifies that the specified element is somewhere on the page.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="48%" />
-<col width="40%" />
-<col width="12%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyElementPresent</td>
-<td>submitButton</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertElementPresent</td>
-<td>//img[&#64;alt='foo']</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertElementNotPresent</strong>( <em>elementLocator</em> )</p>
-<blockquote>
-<p>Verifies that the specified element is NOT on the page.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="58%" />
-<col width="30%" />
-<col width="13%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyElementNotPresent</td>
-<td>cancelButton</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertElementNotPresent</td>
-<td>cancelButton</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertTable</strong>( <em>cellAddress</em>, <em>valuePattern</em> )</p>
-<blockquote>
-<p>Verifies the text in a cell of a table. The <em>cellAddress</em> syntax <em>tableName.row.column</em>, where row and column start at 0.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="35%" />
-<col width="35%" />
-<col width="29%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyTable</td>
-<td>myTable.1.6</td>
-<td>Submitted</td>
-</tr>
-<tr><td>assertTable</td>
-<td>results.0.2</td>
-<td>13</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertVisible</strong>( <em>elementLocator</em> )</p>
-<blockquote>
-<p>Verifies that the specified element is both present <em>and</em> visible. An element can be rendered invisible by setting the CSS &quot;visibility&quot; property to &quot;hidden&quot;, or the &quot;display&quot; property to &quot;none&quot;, either for the element itself or one if its ancestors.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="50%" />
-<col width="31%" />
-<col width="19%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyVisible</td>
-<td>postcode</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertVisible</td>
-<td>postcode</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertNotVisible</strong>( <em>elementLocator</em> )</p>
-<blockquote>
-<p>Verifies that the specified element is NOT visible. Elements that are simply not present are also considered invisible.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="55%" />
-<col width="28%" />
-<col width="17%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyNotVisible</td>
-<td>postcode</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertNotVisible</td>
-<td>postcode</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>verifyEditable / assertEditable</strong>( <em>inputLocator</em> )</p>
-<blockquote>
-<p>Verifies that the specified element is editable, ie. it's an input element, and hasn't been disabled.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="52%" />
-<col width="30%" />
-<col width="19%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyEditable</td>
-<td>shape</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertEditable</td>
-<td>colour</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertNotEditable</strong>( <em>inputLocator</em> )</p>
-<blockquote>
-Verifies that the specified element is NOT editable, ie. it's NOT an input element, or has been disabled.</blockquote>
-<p><strong>assertAlert</strong>( <em>messagePattern</em> )</p>
-<blockquote>
-<p>Verifies that a javascript alert with the specified message was generated. Alerts must be verified in the same order that they were generated.</p>
-<p>Verifying an alert has the same effect as manually clicking OK. If an alert is generated but you do not verify it, the next Selenium action will fail.</p>
-<p>NOTE: under Selenium, javascript alerts will NOT pop up a visible alert dialog.</p>
-<p>NOTE: Selenium does NOT support javascript alerts that are generated in a page's onload() event handler. In this case a visible dialog WILL be generated and Selenium will hang until you manually click OK.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="36%" />
-<col width="51%" />
-<col width="13%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>verifyAlert</td>
-<td>Invalid Phone Number</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>assertAlert</td>
-<td>Invalid Phone Number</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertConfirmation</strong>( <em>messagePattern</em> )</p>
-<blockquote>
-<p>Verifies that a javascript confirmation dialog with the specified message was generated. Like alerts, confirmations must be verified in the same order that they were generated.</p>
-<p>By default, the confirm function will return true, having the same effect as manually clicking OK. This can be changed by prior execution of the <strong>chooseCancelOnNextConfirmation</strong> command (see above). If an confirmation is generated but you do not verify it, the next Selenium action will fail.</p>
-<p>NOTE: under Selenium, javascript confirmations will NOT pop up a visible dialog.</p>
-<p>NOTE: Selenium does NOT support javascript confirmations that are generated in a page's onload() event handler. In this case a visible dialog WILL be generated and Selenium will hang until you manually click OK.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="42%" />
-<col width="47%" />
-<col width="12%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>assertConfirmation</td>
-<td>Remove this user?</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>verifyConfirmation</td>
-<td>Are you sure?</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-<p><strong>assertPrompt</strong>( <em>messagePattern</em> )</p>
-<blockquote>
-<p>Verifies that a javascript prompt dialog with the specified message was generated. Like alerts, prompts must be verified in the same order that they were generated.</p>
-<p>Successful handling of the prompt requires prior execution of the <strong>answerOnNextPrompt</strong> command (see above). If a prompt is generated but you do not verify it, the next Selenium action will fail.</p>
-<p><strong>examples:</strong></p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="35%" />
-<col width="56%" />
-<col width="10%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>answerOnNextPrompt</td>
-<td>Joe</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>click</td>
-<td>id=delegate</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>verifyPrompt</td>
-<td>Delegate to who?</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-</blockquote>
-</div>
-<div class="section" id="parameter-construction-and-variables">
-<h1><a name="parameter-construction-and-variables">Parameter construction and Variables</a></h1>
-<blockquote>
-<p>All Selenium command parameters can be constructed using both simple
-variable substitution as well as full javascript. Both of these
-mechanisms can access previously stored variables, but do so using
-different syntax.</p>
-<p><strong>Stored Variables</strong></p>
-<p>The commands <em>store</em>, <em>storeValue</em> and <em>storeText</em> can be used to store a variable
-value for later access. Internally, these variables are stored in a map called &quot;storedVars&quot;,
-with values keyed by the variable name. These commands are documented in the command reference.</p>
-<p><strong>Variable substitution</strong></p>
-<p>Variable substitution provides a simple way to include a previously stored variable in a
-command parameter. This is a simple mechanism, by which the variable to substitute is indicated
-by ${variableName}. Multiple variables can be substituted, and intermixed with static text.</p>
-<p>Example:</p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="18%" />
-<col width="36%" />
-<col width="45%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>store</td>
-<td>Mr</td>
-<td>title</td>
-</tr>
-<tr><td>storeValue</td>
-<td>nameField</td>
-<td>surname</td>
-</tr>
-<tr><td>store</td>
-<td>${title} ${surname}</td>
-<td>fullname</td>
-</tr>
-<tr><td>type</td>
-<td>textElement</td>
-<td>Full name is: ${fullname}</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-<p><strong>Javascript evaluation</strong></p>
-<p>Javascript evaluation provides the full power of javascript in constructing a command parameter.
-To use this mechanism, the <em>entire</em> parameter value must be prefixed by
-'javascript{' with a trailing '}'. The text inside the braces is evaluated as a javascript expression,
-and can access previously stored variables using the <em>storedVars</em> map detailed above.
-Note that variable substitution cannot be combined with javascript evaluation.</p>
-<p>Example:</p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="9%" />
-<col width="44%" />
-<col width="46%" />
-</colgroup>
-<tbody valign="top">
-<tr><td>store</td>
-<td>javascript{'merchant' + (new Date()).getTime()}</td>
-<td>merchantId</td>
-</tr>
-<tr><td>type</td>
-<td>textElement</td>
-<td>javascript{storedVars['merchantId'].toUpperCase()}</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-</div>
-<div class="section" id="extending-selenium">
-<h1><a name="extending-selenium">Extending Selenium</a></h1>
-<blockquote>
-<p>It can be quite simple to extend Selenium, adding your own actions, checks and locator-strategies.
-This is done with javascript by adding methods to the Selenium object prototype, and the PageBot
-object prototype. On startup, Selenium will automatically look through methods on these prototypes,
-using name patterns to recognise which ones are actions, checks and locators.</p>
-<p>The following examples try to give an indication of how Selenium can be extended with javascript.</p>
-</blockquote>
-<p><strong>Actions</strong></p>
-<blockquote>
-<p>All <em>doFoo</em> methods on the Selenium prototype are added as actions. For each action <em>foo</em> there
-is also an action <em>fooAndWait</em> registered. An action method can take up to 2 parameters, which
-will be passed the second and third column values in the test.</p>
-<p>Example: Add a &quot;typeRepeated&quot; action to Selenium, which types the text twice into a text box.</p>
-<pre class="literal-block">
-Selenium.prototype.doTypeRepeated = function(locator, text) {
- // All locator-strategies are automatically handled by &quot;findElement&quot;
- var element = this.page().findElement(locator);
-
- // Create the text to type
- var valueToType = text + text;
-
- // Replace the element text with the new text
- this.page().replaceText(element, valueToType);
-};
-</pre>
-</blockquote>
-<p><strong>Checks</strong></p>
-<blockquote>
-<p>All <em>assertFoo</em> methods on the Selenium prototype are added as checks. For each check <em>foo</em> there
-is an <em>assertFoo</em> and <em>verifyFoo</em> registered. An assert method can take up to 2 parameters, which
-will be passed the second and third column values in the test.</p>
-<p>Example: Add a <em>valueRepeated</em> check, that makes sure that the element value
-consists of the supplied text repeated. The 2 commands that would be available in tests would be
-<em>assertValueRepeated</em> and <em>verifyValueRepeated</em>.</p>
-<pre class="literal-block">
-Selenium.prototype.assertValueRepeated = function(locator, text) {
- // All locator-strategies are automatically handled by &quot;findElement&quot;
- var element = this.page().findElement(locator);
-
- // Create the text to verify
- var expectedValue = text + text;
-
- // Get the actual element value
- var actualValue = element.value;
-
- // Make sure the actual value matches the expected
- this.assertMatches(expectedValue, actualValue);
-};
-</pre>
-</blockquote>
-<p><strong>Locator Strategies</strong></p>
-<blockquote>
-<p>All <em>locateElementByFoo</em> methods on the PageBot prototype are added as locator-strategies. A locator strategy takes 2 parameters, the first being the locator string (minus the prefix), and the second being the document in which to search.</p>
-<p>Example: Add a &quot;valuerepeated=&quot; locator, that finds the first element a value attribute equal to the the supplied value repeated.</p>
-<pre class="literal-block">
-// The &quot;inDocument&quot; is a the document you are searching.
-PageBot.prototype.locateElementByValueRepeated = function(text, inDocument) {
- // Create the text to search for
- var expectedValue = text + text;
-
- // Loop through all elements, looking for ones that have
- // a value === our expected value
- var allElements = inDocument.getElementsByTagName(&quot;*&quot;);
- for (var i = 0; i &lt; allElements.length; i++) {
- var testElement = allElements[i];
- if (testElement.value &amp;&amp; testElement.value === expectedValue) {
- return testElement;
- }
- }
- return null;
-};
-</pre>
-</blockquote>
-<p><strong>user-extensions.js</strong></p>
-<blockquote>
-<p>By default, Selenium looks for a file called &quot;user-extensions.js&quot;, and loads the javascript code found in that file. This file provides a convenient location for adding features to Selenium, without needing to modify the core Selenium sources.</p>
-<p>In the standard distibution, this file does not exist. Users can create this file and place their extension code in this common location, removing the need to modify the Selenium sources, and hopefully assisting with the upgrade process.</p>
-</blockquote>
-<hr />
-<p>:</p>
-</div>
-</div>
-</body>
-</html>
diff --git a/tests/FunctionalTests/selenium/doc/seleniumReference.txt b/tests/FunctionalTests/selenium/doc/seleniumReference.txt
deleted file mode 100644
index e7819869..00000000
--- a/tests/FunctionalTests/selenium/doc/seleniumReference.txt
+++ /dev/null
@@ -1,771 +0,0 @@
-=========================
-Selenium Reference
-=========================
-
---------
-Concepts
---------
-
- A **command** is what tells Selenium what to do. Selenium commands come in two 'flavors', **Actions** and **Assertions**.
- Each command call is one line in the test table of the form:
-
- ======= ====== =====
- command target value
- ======= ====== =====
-
- **Actions** are commands that generally manipulate the state of the application. They do things like "click this link" and "select that option". If an Action fails, or has an error, the execution of the current test is stopped.
-
- **Assertions** verify the state of the application conforms to what is expected. Examples include "make sure the page title is X" and "verify that this checkbox is checked". It is possible to tell Selenium to stop the test when an Assertion fails, or to simply record the failure and continue.
-
- **Element Locators** tell Selenium which HTML element a command refers to. Many commands require an Element Locator as the "target" attribute. Examples of Element Locators include "elementId" and "document.forms[0].element". These are described more clearly in the next section.
-
- **Patterns** are used for various reasons, e.g. to specify the expected value of an input field, or identify a select option. Selenium supports various types of pattern, including regular-expressions, all of which are described in more detail below.
-
------------------
-Element Locators
------------------
-
- Element Locators allow Selenium to identify which HTML element a
- command refers to. The format of a locator is:
-
- *locatorType*\ **=**\ *argument*
-
- We support the following strategies for locating
- elements:
-
- **id=**\ *id*
-
- Select the element with the specified @id attribute.
-
- **name=**\ *name*
-
- Select the first element with the specified @name attribute.
- - username
- - name=username
-
- The name may optionally be following by one or more *element-filters*, separated from the name by whitespace. If the *filterType* is not specified, **value** is assumed.
- - name=flavour value=chocolate
-
- **identifier=**\ *id*
-
- Select the element with the specified @id attribute. If no match is found, select the first element whose @name attribute is *id*.
-
- **dom=**\ *javascriptExpression*
-
- Find an element using JavaScript traversal of the HTML Document Object Model. DOM locators *must* begin with "document.".
- - dom=document.forms['myForm'].myDropdown
- - dom=document.images[56]
-
- **xpath=**\ *xpathExpression*
-
- Locate an element using an XPath expression.
- - xpath=//img[@alt='The image alt text']
- - xpath=//table[@id='table1']//tr[4]/td[2]
-
- **link=**\ *textPattern*
-
- Select the link (anchor) element which contains text matching the specified *pattern*.
- - link=The link text
-
-
- If no *locatorType* is specified, Selenium uses:
-
- * **dom**, for locators starting with "document."
- * **xpath**, for locators starting with "//"
- * **identifier**, otherwise
-
----------------
-Element Filters
----------------
-
- Element filters can be used with a locator to refine a list of candidate elements. They are currently used only in the 'name' element-locator.
-
- Filters look much like locators, ie.
-
- *filterType*\ **=**\ *argument*
-
- Supported element-filters are:
-
- **value=**\ *valuePattern*
-
- Matches elements based on their values. This is particularly useful for refining a list of similarly-named toggle-buttons.
-
- **index=**\ *index*
-
- Selects a single element based on its position in the list offset from zero).
-
-------------------------
-Select Option Specifiers
-------------------------
-
- Select Option Specifiers provide different ways of specifying options of an HTML Select element (e.g. for selecting a specific option, or for asserting that the selected option satisfies a specification). There are several forms of Select Option Specifier.
-
- **label=**\ *labelPattern*
- matches options based on their labels, i.e. the visible text.
- - label=regexp:^[Oo]ther
-
- **value=**\ *valuePattern*
- matches options based on their values.
- - value=other
-
- **id=**\ *id*
- matches options based on their ids.
- - id=option1
-
- **index=**\ *index*
- matches an option based on its index (offset from zero).
- - index=2
-
- If no optionSpecifierType prefix is provided, the default behaviour is to match on **label**.
-
-------------------------
-String-match Patterns
-------------------------
-
- Various Pattern syntaxes are available for matching string values:
-
- **glob:**\ *pattern*
- Match a string against a "glob" (aka "wildmat") pattern. "Glob" is a kind of limited regular-expression syntax typically used in command-line shells. In a glob pattern, "*" represents any sequence of characters, and "?" represents any single character. Glob patterns match against the entire string.
-
- **regexp:**\ *regexp*
- Match a string using a regular-expression. The full power of JavaScript regular-expressions is available.
-
- **exact:**\ *string*
- Match a string exactly, verbatim, without any of that fancy wildcard stuff.
-
- If no pattern prefix is specified, Selenium assumes that it's a "glob" pattern.
-
-----------------
-Selenium Actions
-----------------
-
- Actions tell Selenium to do something in the application. They generally represent something a user would do.
-
- Many **Actions** can be called with the "AndWait" suffix. This suffix tells Selenium that the action will cause the browser to make a call to the server, and that Selenium should wait for a new page to load.
-
- **open**\ ( *url* )
-
- Opens a URL in the test frame. This accepts both relative and absolute URLs.
-
- The "open" command waits for the page to load before proceeding,
- ie. the "AndWait" suffix is implicit.
-
- *Note*: The URL must be on the same site as Selenium due to security restrictions in the browser (Cross Site Scripting).
-
- **examples:**
-
- ==== ================= =====
- open /mypage
- open http://localhost/
- ==== ================= =====
-
- **click**\ ( *elementLocator* )
-
- Clicks on a link, button, checkbox or radio button.
- If the click action causes a new page to load (like a link usually does), use "clickAndWait".
-
- **examples:**
-
- ============ ================== =====
- click aCheckbox
- clickAndWait submitButton
- clickAndWait anyLink
- ============ ================== =====
-
- **type**\ ( *inputLocator*, *value* )
-
- Sets the *value* of an input field, as though you typed it in.
-
- Can also be used to set the value of combo boxes, check boxes, etc. In these cases, *value* should be the value of the option selected, not the visible text.
-
- **examples:**
-
- =========== ========================== ==========
- type nameField John Smith
- typeAndWait textBoxThatSubmitsOnChange newValue
- =========== ========================== ==========
-
- **select**\ ( *dropDownLocator*, *optionSpecifier* )
-
- Select an option from a drop-down, based on the *optionSpecifier*. If more than one option matches the specifier (e.g. due to the use of globs like "f*b*", or due to more than one option having the same label or value), then the first matches is selected.
-
- **examples:**
-
- ============= ================ ==========
- select dropDown Australian Dollars
- select dropDown index=0
- selectAndWait currencySelector value=AUD
- selectAndWait currencySelector label=Aus*lian D*rs
- ============= ================ ==========
-
- **check**\ ( *toggleButtonLocator* )
-
- Check a toggle-button (ie. a check-box or radio-button).
-
- Note: if addressing the toggle-button element by name, you'll need to append an element-filter (e.g. typically by value), since toggle-button groups consist of input-elements with the same name.
-
- **examples:**
-
- ============= ======================== ==========
- check name=flavour value=honey
- check flavour honey
- ============= ======================== ==========
-
- **uncheck**\ ( *toggleButtonLocator* )
-
- Un-check a toggle-button.
-
- **selectWindow**\ ( *windowId* )
-
- Selects a popup window. Once a popup window has been selected, all commands go to that window. To select the main window again, use "null" as the target.
-
- **target:** The id of the window to select.
-
- **value:** *ignored*
-
- **examples:**
-
- ============ ============= =====
- selectWindow myPopupWindow
- selectWindow null
- ============ ============= =====
-
- **goBack**\ ()
-
- Simulates the user clicking the "back" button on their browser.
-
- **examples:**
-
- ============= ==== =====
- goBackAndWait
- ============= ==== =====
-
- **close**\ ()
-
- Simulates the user clicking the "close" button in the titlebar of a popup window.
-
- **examples:**
-
- ====== ==== =====
- close
- ====== ==== =====
-
- **pause**\ ( *milliseconds* )
-
- Pauses the execution of the test script for a specified amount of time. This is useful for debugging a script or pausing to wait for some server side action.
-
- **examples:**
-
- ===== ==== =====
- pause 5000
- pause 2000
- ===== ==== =====
-
- **fireEvent**\ ( *elementLocator*, *eventName* )
-
- Explicitly simulate an event, to trigger the corresponding "on\ *event*" handler.
-
- **examples:**
-
- ========= =========== ========
- fireEvent textField focus
- fireEvent dropDown blur
- ========= =========== ========
-
- **waitForValue**\ ( *inputLocator*, *value* )
-
- Waits for a specified input (e.g. a hidden field) to have a specified *value*. Will succeed immediately if the input already has the value. This is implemented by polling for the value. Warning: can block indefinitely if the input never has the specified value.
-
- **example:**
-
- ============ ================ ==========
- waitForValue finishIndication isfinished
- ============ ================ ==========
-
- **store**\ ( *valueToStore*, *variableName* )
-
- Stores a value into a variable. The value can be constructed using either variable substitution or JavaScript evaluation, as detailed in 'Parameter construction and Variables' (below).
-
- **examples:**
-
- ========== ============================================ =========
- store Mr John Smith fullname
- store ${title} ${firstname} ${surname} fullname
- store javascript{Math.round(Math.PI * 100) / 100} PI
- ========== ============================================ =========
-
- **storeValue**\ ( *inputLocator*, *variableName* )
-
- Stores the value of an input field into a variable.
-
- **examples:**
-
- ========== ========= =========
- storeValue userName userID
- type userName ${userID}
- ========== ========= =========
-
- **storeText**\ ( *elementLocator*, *variableName* )
-
- Stores the text of an element into a variable.
-
- **examples:**
-
- =========== =========== ====================
- storeText currentDate expectedStartDate
- verifyValue startDate ${expectedStartDate}
- =========== =========== ====================
-
- **storeAttribute**\ ( *elementLocator*\ @\ *attributeName*, *variableName* )
-
- Stores the value of an element attribute into a variable.
-
- **examples:**
-
- =============== ============== ====================
- storeAttribute input1@\ class classOfInput1
- verifyAttribute input2@\ class ${classOfInput1}
- =============== ============== ====================
-
- **chooseCancelOnNextConfirmation**\ ()
-
- By default, Selenium's overridden window.confirm() function will
- return true, as if the user had manually clicked OK. After running
- this command, the next call to confirm() will return false, as if
- the user had clicked Cancel.
-
- **examples:**
-
- ============================== ===== =====
- chooseCancelOnNextConfirmation
- ============================== ===== =====
-
- **answerOnNextPrompt**\ ( *answerString* )
-
- Instructs Selenium to return the specified *answerString* in
- response to the next call to window.prompt().
-
- **examples:**
-
- ========================== ========= =====
- answerOnNextPrompt Kangaroo
- ========================== ========= =====
-
--------------------
-Selenium Assertions
--------------------
-
- Assertions are used to verify the state of the application. They can be used to check the value of a form field, the presense of some text, or the URL of the current page.
-
- All Selenium assertions can be used in 2 modes, "assert" and "verify". These behave identically, except that when an "assert" fails, the test is aborted. When a "verify" fails, the test will continue execution. This allows a single "assert" to ensure that the application is on the correct page, followed by a bunch of "verify" assertions to test form field values, labels, etc.
-
- A growing number of assertions have a negative version. In most cases, except where indicated, if the positive assertion is of the form **assertXYZ**, then the negative cases will be of the form **assertNotXYZ**.
-
- **assertLocation**\ ( *relativeLocation* )
-
- **examples:**
-
- ============== ======= =====
- verifyLocation /mypage
- assertLocation /mypage
- ============== ======= =====
-
- **assertTitle**\ ( *titlePattern* )
-
- Verifies the title of the current page.
-
- **examples:**
-
- =========== ======= =====
- verifyTitle My Page
- assertTitle My Page
- =========== ======= =====
-
- **assertNotTitle**\ ( *titlePattern* )
-
- Verifies that the title of the current page does not match the specified pattern.
-
- **assertValue**\ ( *inputLocator*, *valuePattern* )
-
- Verifies the value of an input field (or anything else with a value parameter). For checkbox/radio elements, the value will be "on" or "off" depending on whether the element is checked or not.
-
- **examples:**
-
- =========== =========================== ==========
- verifyValue nameField John Smith
- assertValue document.forms[2].nameField John Smith
- =========== =========================== ==========
-
- **assertNotValue**\ ( *inputLocator*, *valuePattern* )
-
- Verifies the value of an input field does not match the specified pattern.
-
- **assertSelected**\ ( *selectLocator*, *optionSpecifier* )
-
- Verifies that the selected option of a drop-down satisfies the *optionSpecifier*.
-
- **examples:**
-
- ============== =========================== ==========
- verifySelected dropdown2 John Smith
- verifySelected dropdown2 value=js*123
- assertSelected document.forms[2].dropDown label=J* Smith
- assertSelected document.forms[2].dropDown index=0
- ============== =========================== ==========
-
- **assertSelectOptions**\ ( *selectLocator*, *optionLabelList* )
-
- Verifies the labels of all options in a drop-down against a comma-separated list. Commas in an expected option can be escaped as "\,".
-
- **examples:**
-
- =================== =========================== ====================
- verifySelectOptions dropdown2 John Smith,Dave Bird
- assertSelectOptions document.forms[2].dropDown Smith\\, J,Bird\\, D
- =================== =========================== ====================
-
- **assertChecked**\ ( *toggleButtonLocator* )
-
- Verifies that the specified toggle-button element is checked.
-
- **examples:**
-
- ============= ======================== ==========
- verifyChecked flavour honey
- ============= ======================== ==========
-
- **assertText**\ ( *elementLocator*, *textPattern* )
-
- Verifies 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.
-
- **examples:**
-
- ========== ==================== ==========
- verifyText statusMessage Successful
- assertText //div[@id='foo']//h1 Successful
- ========== ==================== ==========
-
- **assertNotText**\ ( *elementLocator*, *textPattern* )
-
- Verifies that the text of an element does not match the specified pattern.
-
- **assertAttribute**\ ( *elementLocator*\ @\ *attributeName*, *valuePattern* )
-
- Verifies the value of an element attribute.
-
- **examples:**
-
- =============== ====================== ==========
- verifyAttribute txt1@\ class bigAndBold
- assertAttribute document.images[0]@alt alt-text
- verifyAttribute //img[@id='foo']/@alt alt-text
- =============== ====================== ==========
-
- **assertNotAttribute**\ ( *elementLocator*\ @\ *attributeName*, *valuePattern* )
-
- Verifies that the value of an element attribute does not match the specified pattern.
-
- **assertTextPresent**\ ( *text* )
-
- Verifies that the specified text appears somewhere on the rendered page shown to the user.
-
- **examples:**
-
- ================= ====================== =====
- verifyTextPresent You are now logged in.
- assertTextPresent You are now logged in.
- ================= ====================== =====
-
- **assertTextNotPresent**\ ( *text* )
-
- Verifies that the specified text does NOT appear anywhere on the rendered page.
-
- **assertElementPresent**\ ( *elementLocator* )
-
- Verifies that the specified element is somewhere on the page.
-
- **examples:**
-
- ==================== ================= =====
- verifyElementPresent submitButton
- assertElementPresent //img[@alt='foo']
- ==================== ================= =====
-
- **assertElementNotPresent**\ ( *elementLocator* )
-
- Verifies that the specified element is NOT on the page.
-
- **examples:**
-
- ======================= ============ =====
- verifyElementNotPresent cancelButton
- assertElementNotPresent cancelButton
- ======================= ============ =====
-
- **assertTable**\( *cellAddress*, *valuePattern* )
-
- Verifies the text in a cell of a table. The *cellAddress* syntax *tableName.row.column*, where row and column start at 0.
-
- **examples:**
-
- =========== =========== =========
- verifyTable myTable.1.6 Submitted
- assertTable results.0.2 13
- =========== =========== =========
-
- **assertNotTable**\( *cellAddress*, *valuePattern* )
-
- Verifies that the text in a cell of a table does not match the specified pattern. Note that this will fail if the table cell does not exist.
-
- **assertVisible**\ ( *elementLocator* )
-
- Verifies that the specified element is both present *and* visible. An element can be rendered invisible by setting the CSS "visibility" property to "hidden", or the "display" property to "none", either for the element itself or one if its ancestors.
-
- **examples:**
-
- ============= ======== =====
- verifyVisible postcode
- assertVisible postcode
- ============= ======== =====
-
- **assertNotVisible**\ ( *elementLocator* )
-
- Verifies that the specified element is NOT visible. Elements that are simply not present are also considered invisible.
-
- **examples:**
-
- ================ ======== =====
- verifyNotVisible postcode
- assertNotVisible postcode
- ================ ======== =====
-
- **verifyEditable / assertEditable**\ ( *inputLocator* )
-
- Verifies that the specified element is editable, ie. it's an input element, and hasn't been disabled.
-
- **examples:**
-
- ============== ======== =====
- verifyEditable shape
- assertEditable colour
- ============== ======== =====
-
- **assertNotEditable**\ ( *inputLocator* )
-
- Verifies that the specified element is NOT editable, ie. it's NOT an input element, or has been disabled.
-
- **assertAlert**\ ( *messagePattern* )
-
- Verifies that a JavaScript alert was generated, with the specified
- message.
-
- If an alert is generated but you do not verify it, the next
- Selenium action will fail. Alerts must be verified in the order
- that they were generated.
-
- **examples:**
-
- ============== ==================== =====
- verifyAlert Invalid Phone Number
- assertAlert Invalid Phone Number
- ============== ==================== =====
-
- **assertConfirmation**\ ( *messagePattern* )
-
- Verifies that a JavaScript confirmation dialog was generated, with
- the specified message.
-
- By default, the confirm function will return true, having the same
- effect as manually clicking OK. This can be changed by prior
- execution of the **chooseCancelOnNextConfirmation** command (see
- above).
-
- Like alerts, any unexpected confirmation will cause the test to
- fail, and confirmations must be verified in the order that they
- were generated.
-
- **examples:**
-
- ================== ==================== =====
- assertConfirmation Remove this user?
- verifyConfirmation Are you sure?
- ================== ==================== =====
-
- **assertPrompt**\ ( *messagePattern* )
-
- Verifies that a JavaScript prompt dialog was generated, with the
- specified message.
-
- Successful handling of the prompt requires prior execution of the
- **answerOnNextPrompt** command (see above).
-
- Like alerts, unexpected prompts will cause the test to fail, and
- they must be verified in the order that they were generated.
-
- **examples:**
-
- ================== ============================= =====
- answerOnNextPrompt Joe
- click id=delegate
- verifyPrompt Delegate to who?
- ================== ============================= =====
-
--------------------------------------------
-Handling of alert(), confirm() and prompt()
--------------------------------------------
-
- Selenium overrides the default implementations of the JavaScript
- window.alert(), window.confirm() and window.prompt() functions,
- enabling tests to simulate the actions of the user when these occur.
- Under normal condition, no visible JavaScript dialog-box will appear.
-
- If your application generates alerts, confirmations, or prompts, you
- *must* use assertAlert, assertConfirmation and assertPrompt (or their
- "verify" equivalents) to handle them. Any unhandled alerts will result
- in the test failing.
-
- *PROVISO:* Selenium is unable to handle alerts, confirmations, or
- prompts raised during processing of the 'onload' event. In such cases
- a visible dialog-box WILL appear, and Selenium will hang until you
- manually handle it. This is an unfortunate restriction, but at this
- time we have no solution.
-
-------------------------------------
-Parameter construction and Variables
-------------------------------------
-
- All Selenium command parameters can be constructed using both simple
- variable substitution as well as full JavaScript. Both of these
- mechanisms can access previously stored variables, but do so using
- different syntax.
-
- **Stored Variables**
-
- The commands *store*, *storeValue* and *storeText* can be used to store a variable
- value for later access. Internally, these variables are stored in a map called "storedVars",
- with values keyed by the variable name. These commands are documented in the command reference.
-
- **Variable substitution**
-
- Variable substitution provides a simple way to include a previously stored variable in a
- command parameter. This is a simple mechanism, by which the variable to substitute is indicated
- by ${variableName}. Multiple variables can be substituted, and intermixed with static text.
-
- Example:
-
- ========== ==================== ==========
- store Mr title
- storeValue nameField surname
- store ${title} ${surname} fullname
- type textElement Full name is: ${fullname}
- ========== ==================== ==========
-
- **JavaScript evaluation**
-
- JavaScript evaluation provides the full power of JavaScript in constructing a command parameter.
- To use this mechanism, the *entire* parameter value must be prefixed by
- 'javascript{' with a trailing '}'. The text inside the braces is evaluated as a JavaScript expression,
- and can access previously stored variables using the *storedVars* map detailed above.
- Note that variable substitution cannot be combined with JavaScript evaluation.
-
- Example:
-
- ========== ================================================ ==========
- store javascript{'merchant' + (new Date()).getTime()} merchantId
- type textElement javascript{storedVars['merchantId'].toUpperCase()}
- ========== ================================================ ==========
-
-------------------
-Extending Selenium
-------------------
-
- It can be quite simple to extend Selenium, adding your own actions, assertions and locator-strategies.
- This is done with JavaScript by adding methods to the Selenium object prototype, and the PageBot
- object prototype. On startup, Selenium will automatically look through methods on these prototypes,
- using name patterns to recognise which ones are actions, assertions and locators.
-
- The following examples try to give an indication of how Selenium can be extended with JavaScript.
-
-**Actions**
-
- All *doFoo* methods on the Selenium prototype are added as actions. For each action *foo* there
- is also an action *fooAndWait* registered. An action method can take up to 2 parameters, which
- will be passed the second and third column values in the test.
-
- Example: Add a "typeRepeated" action to Selenium, which types the text twice into a text box.
-
- ::
-
- Selenium.prototype.doTypeRepeated = function(locator, text) {
- // All locator-strategies are automatically handled by "findElement"
- var element = this.page().findElement(locator);
-
- // Create the text to type
- var valueToType = text + text;
-
- // Replace the element text with the new text
- this.page().replaceText(element, valueToType);
- };
-
-**Assertions**
-
- All *assertFoo* methods on the Selenium prototype are added as
- assertions. For each assertion *foo* there is an *assertFoo* and
- *verifyFoo* registered. An assert method can take up to 2 parameters,
- which will be passed the second and third column values in the test.
-
- Example: Add a *valueRepeated* assertion, that makes sure that the
- element value consists of the supplied text repeated. The 2 commands
- that would be available in tests would be *assertValueRepeated* and
- *verifyValueRepeated*.
-
- ::
-
- Selenium.prototype.assertValueRepeated = function(locator, text) {
- // All locator-strategies are automatically handled by "findElement"
- var element = this.page().findElement(locator);
-
- // Create the text to verify
- var expectedValue = text + text;
-
- // Get the actual element value
- var actualValue = element.value;
-
- // Make sure the actual value matches the expected
- Assert.matches(expectedValue, actualValue);
- };
-
-**Locator Strategies**
-
- All *locateElementByFoo* methods on the PageBot prototype are added as locator-strategies. A locator strategy takes 2 parameters, the first being the locator string (minus the prefix), and the second being the document in which to search.
-
- Example: Add a "valuerepeated=" locator, that finds the first element a value attribute equal to the the supplied value repeated.
-
- ::
-
- // The "inDocument" is a the document you are searching.
- PageBot.prototype.locateElementByValueRepeated = function(text, inDocument) {
- // Create the text to search for
- var expectedValue = text + text;
-
- // Loop through all elements, looking for ones that have
- // a value === our expected value
- var allElements = inDocument.getElementsByTagName("*");
- for (var i = 0; i < allElements.length; i++) {
- var testElement = allElements[i];
- if (testElement.value && testElement.value === expectedValue) {
- return testElement;
- }
- }
- return null;
- };
-
-**user-extensions.js**
-
- By default, Selenium looks for a file called "user-extensions.js", and loads the JavaScript code found in that file. This file provides a convenient location for adding features to Selenium, without needing to modify the core Selenium sources.
-
- In the standard distibution, this file does not exist. Users can create this file and place their extension code in this common location, removing the need to modify the Selenium sources, and hopefully assisting with the upgrade process.
-
-------------------
-
-:
diff --git a/tests/FunctionalTests/selenium/doc/testRunner.txt b/tests/FunctionalTests/selenium/doc/testRunner.txt
deleted file mode 100644
index 56b949d2..00000000
--- a/tests/FunctionalTests/selenium/doc/testRunner.txt
+++ /dev/null
@@ -1,99 +0,0 @@
-=========================
-TestRunner Reference
-=========================
------------
-Test Suites
------------
-
- A test suite is represented by an HTML document containing a single-column table. Each entry in the table should be a hyperlink to a test-case document. The first row will be ignored by Selenium, so this can be used for a title, and is typically used to hold a title.
-
- By default Selenium will attempt to load the test-suite from "tests/TestSuite.html". An alternative test-suite source can be specified by appending a "test" parameter to the TestRunner.html URL, e.g.::
-
- http://localhost:8000/TestRunner.html?test=AllTests.php
-
- The "test" URL is interpreted relative to the location of TestRunner.html.
-
-----------
-Test Cases
-----------
-
- A test-case is represented by an HTML document, containing a table with 3 columns: *command*, *target*, *value*. Not all commands take a value, however. In this case either leave the column blank or use a &nbsp; to make the table look better.
-
- The first row will be ignored by Selenium, so this can be used for a title or any other information.
-
- Example:
-
- ========== ============ ==========
- Simple Test Table
- --------------------------------------
- open /mypage
- type nameField John Smith
- click submitButton True
- verifyText name John Smith
- ========== ============ ==========
-
------------------
-SetUp / TearDown
------------------
-
- There are no setUp and tearDown commands in Selenium, but there is a way to handle these common testing operations. On the site being tested, create URLs for setUp and tearDown. Then, when the test runner opens these URLs, the server can do whatever setUp or tearDown is necessary.
-
- Example:
-
- For the T&E project, we wanted the functional tests to run as a dummy user. Therefore, we made a /setUpFT URL that would create a dummy user and write the userID to the page. Then, we can store this value (using the command storeValue) and use it in the script. Finally, we made a /tearDownFT URL which takes the dummy userID as a parameter and deletes the user. Therefore, our tests look like this:
-
- ========== ============================ ==========
- Setup and Teardown
- ------------------------------------------------------
- open /setUpFT
- storeValue userid
- open /login
- type userID ${userid}
- click submit
- open /tearDownFT?userid=${userid}
- ========== ============================ ==========
-
-
-----------------------
-Continuous Integration
-----------------------
-
- Selenium can be integrated with an automated build. When the parameter "auto=true" is added to the URL, Selenium will run the entire suite of tests, and then post the results to a handling URL. The default URL is "/postResults", but an alternative handler location can be provided by specifying a "resultsUrl" parameter.
-
- The fields of the post are:
-
- ================== ======================================================================================================
- Parameter Description
- ================== ======================================================================================================
- result the word "passed" or "failed" depending on whether the whole suite passed or at least one test failed.
- totalTime the time in seconds for the whole suite to run
- numTestPasses tht total number of tests which passed
- numTestFailures the total number of tests which failed.
- numCommandPasses the total number of commands which passed.
- numCommandFailures the total number of commands which failed.
- numCommandErrors the total number of commands which errored.
- suite the suite table, including the hidden column of test results
- testTable.1 the first test table
- testTable.2 the second test table
- ... ...
- testTable.N The Nth test table
- ================== ======================================================================================================
-
- Therefore, the steps for continuous integration are:
- 1. Create a servlet-type application at the url /postResults which can read the parameters above and write them to a file
- 2. Create a script which can start up a brower and send to to the URL: selenium?auto=true
- - Generally, this can be done by merely calling the browser with the URL as an argument:
- firefox.exe http://localhost/selenium?auto=true
- 3. Make your continuous build:
- - Call the script from step 2, preferably using more than one browser
- - Wait for it to finish, possibly by checking for the existence of the file(s) from step 1
- - Parse these files to determine whether the build passed or failed
- - Act accordingly (send emails, update a build web page, etc.)
-
-
-------------------
-
-:Authors: Paul Gross, Jason Huggins
-:Created Date: 08/23/2004
-:Modified Date: 28/01/2005
-:Created With: reStructuredText: http://docutils.sourceforge.net/rst.html
diff --git a/tests/FunctionalTests/selenium/doc/testrunner.html b/tests/FunctionalTests/selenium/doc/testrunner.html
deleted file mode 100644
index 86cac0cb..00000000
--- a/tests/FunctionalTests/selenium/doc/testrunner.html
+++ /dev/null
@@ -1,213 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.3.5: http://docutils.sourceforge.net/" />
-<title>TestRunner Reference</title>
-<link rel="stylesheet" href="default.css" type="text/css" />
-</head>
-<body>
-<h1 class="title">TestRunner Reference</h1>
-<div class="document" id="testrunner-reference">
-<div class="section" id="test-suites">
-<h1><a name="test-suites">Test Suites</a></h1>
-<blockquote>
-<p>A test suite is represented by an HTML document containing a single-column table. Each entry in the table should be a hyperlink to a test-case document. The first row will be ignored by Selenium, so this can be used for a title, and is typically used to hold a title.</p>
-<p>By default Selenium will attempt to load the test-suite from &quot;tests/TestSuite.html&quot;. An alternative test-suite source can be specified by appending a &quot;test&quot; parameter to the TestRunner.html URL, e.g.:</p>
-<pre class="literal-block">
-http://localhost:8000/TestRunner.html?test=AllTests.php
-</pre>
-<p>The &quot;test&quot; URL is interpreted relative to the location of TestRunner.html.</p>
-</blockquote>
-</div>
-<div class="section" id="test-cases">
-<h1><a name="test-cases">Test Cases</a></h1>
-<blockquote>
-<p>A test-case is represented by an HTML document, containing a table with 3 columns: <em>command</em>, <em>target</em>, <em>value</em>. Not all commands take a value, however. In this case either leave the column blank or use a &amp;nbsp; to make the table look better.</p>
-<p>The first row will be ignored by Selenium, so this can be used for a title or any other information.</p>
-<p>Example:</p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="31%" />
-<col width="38%" />
-<col width="31%" />
-</colgroup>
-<tbody valign="top">
-<tr><td colspan="3">Simple Test Table</td>
-</tr>
-<tr><td>open</td>
-<td>/mypage</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>type</td>
-<td>nameField</td>
-<td>John Smith</td>
-</tr>
-<tr><td>click</td>
-<td>submitButton</td>
-<td>True</td>
-</tr>
-<tr><td>verifyText</td>
-<td>name</td>
-<td>John Smith</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-</div>
-<div class="section" id="setup-teardown">
-<h1><a name="setup-teardown">SetUp / TearDown</a></h1>
-<blockquote>
-<p>There are no setUp and tearDown commands in Selenium, but there is a way to handle these common testing operations. On the site being tested, create URLs for setUp and tearDown. Then, when the test runner opens these URLs, the server can do whatever setUp or tearDown is necessary.</p>
-<p>Example:</p>
-<blockquote>
-<p>For the T&amp;E project, we wanted the functional tests to run as a dummy user. Therefore, we made a /setUpFT URL that would create a dummy user and write the userID to the page. Then, we can store this value (using the command storeValue) and use it in the script. Finally, we made a /tearDownFT URL which takes the dummy userID as a parameter and deletes the user. Therefore, our tests look like this:</p>
-<table border="1" class="table">
-<colgroup>
-<col width="21%" />
-<col width="58%" />
-<col width="21%" />
-</colgroup>
-<tbody valign="top">
-<tr><td colspan="3">Setup and Teardown</td>
-</tr>
-<tr><td>open</td>
-<td>/setUpFT</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>storeValue</td>
-<td>userid</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>open</td>
-<td>/login</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>type</td>
-<td>userID</td>
-<td>${userid}</td>
-</tr>
-<tr><td>click</td>
-<td>submit</td>
-<td>&nbsp;</td>
-</tr>
-<tr><td>open</td>
-<td>/tearDownFT?userid=${userid}</td>
-<td>&nbsp;</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-</blockquote>
-</div>
-<div class="section" id="continuous-integration">
-<h1><a name="continuous-integration">Continuous Integration</a></h1>
-<blockquote>
-<p>Selenium can be integrated with an automated build. When the parameter &quot;auto=true&quot; is added to the URL, Selenium will run the entire suite of tests, and then post the results to a handling URL. The default URL is &quot;/postResults&quot;, but an alternative handler location can be provided by specifying a &quot;resultsUrl&quot; parameter.</p>
-<p>The fields of the post are:</p>
-<blockquote>
-<table border="1" class="table">
-<colgroup>
-<col width="15%" />
-<col width="85%" />
-</colgroup>
-<thead valign="bottom">
-<tr><th>Parameter</th>
-<th>Description</th>
-</tr>
-</thead>
-<tbody valign="top">
-<tr><td>result</td>
-<td>the word &quot;passed&quot; or &quot;failed&quot; depending on whether the whole suite passed or at least one test failed.</td>
-</tr>
-<tr><td>totalTime</td>
-<td>the time in seconds for the whole suite to run</td>
-</tr>
-<tr><td>numTestPasses</td>
-<td>tht total number of tests which passed</td>
-</tr>
-<tr><td>numTestFailures</td>
-<td>the total number of tests which failed.</td>
-</tr>
-<tr><td>numCommandPasses</td>
-<td>the total number of commands which passed.</td>
-</tr>
-<tr><td>numCommandFailures</td>
-<td>the total number of commands which failed.</td>
-</tr>
-<tr><td>numCommandErrors</td>
-<td>the total number of commands which errored.</td>
-</tr>
-<tr><td>suite</td>
-<td>the suite table, including the hidden column of test results</td>
-</tr>
-<tr><td>testTable.1</td>
-<td>the first test table</td>
-</tr>
-<tr><td>testTable.2</td>
-<td>the second test table</td>
-</tr>
-<tr><td>...</td>
-<td>...</td>
-</tr>
-<tr><td>testTable.N</td>
-<td>The Nth test table</td>
-</tr>
-</tbody>
-</table>
-</blockquote>
-<dl>
-<dt>Therefore, the steps for continuous integration are:</dt>
-<dd><ol class="first last arabic">
-<li><p class="first">Create a servlet-type application at the url /postResults which can read the parameters above and write them to a file</p>
-</li>
-<li><dl class="first">
-<dt>Create a script which can start up a brower and send to to the URL: selenium?auto=true</dt>
-<dd><ul class="first last">
-<li><dl class="first">
-<dt>Generally, this can be done by merely calling the browser with the URL as an argument:</dt>
-<dd><p class="first last">firefox.exe <a class="reference" href="http://localhost/selenium?auto=true">http://localhost/selenium?auto=true</a></p>
-</dd>
-</dl>
-</li>
-</ul>
-</dd>
-</dl>
-</li>
-<li><dl class="first">
-<dt>Make your continuous build:</dt>
-<dd><ul class="first last simple">
-<li>Call the script from step 2, preferably using more than one browser</li>
-<li>Wait for it to finish, possibly by checking for the existence of the file(s) from step 1</li>
-<li>Parse these files to determine whether the build passed or failed</li>
-<li>Act accordingly (send emails, update a build web page, etc.)</li>
-</ul>
-</dd>
-</dl>
-</li>
-</ol>
-</dd>
-</dl>
-</blockquote>
-<hr />
-<table class="field-list" frame="void" rules="none">
-<col class="field-name" />
-<col class="field-body" />
-<tbody valign="top">
-<tr class="field"><th class="field-name">Authors:</th><td class="field-body">Paul Gross, Jason Huggins</td>
-</tr>
-<tr class="field"><th class="field-name">Created Date:</th><td class="field-body">08/23/2004</td>
-</tr>
-<tr class="field"><th class="field-name">Modified Date:</th><td class="field-body">28/01/2005</td>
-</tr>
-<tr class="field"><th class="field-name">Created With:</th><td class="field-body">reStructuredText: <a class="reference" href="http://docutils.sourceforge.net/rst.html">http://docutils.sourceforge.net/rst.html</a></td>
-</tr>
-</tbody>
-</table>
-</div>
-</div>
-</body>
-</html>
diff --git a/tests/FunctionalTests/selenium/doc/usage.html b/tests/FunctionalTests/selenium/doc/usage.html
deleted file mode 100644
index 81ee7152..00000000
--- a/tests/FunctionalTests/selenium/doc/usage.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="generator"
- content="Docutils 0.3.6: http://docutils.sourceforge.net/">
- <title>Usage</title>
- <link rel="stylesheet" href="default.css" type="text/css">
-</head>
-<body>
-<div class="document" id="selenium-reference">
-<div class="section" id="test-tables">
-<h2><a name="test-tables">Overview</a>&nbsp;</h2>
-This document details how Selenium can be deployed to test or script
-web
-applications.<br>
-</div>
-<div class="section" id="command-reference">
-<h2><a name="test-tables">Modes of Operation</a></h2>
-Broadly speaking there are two modes of operation for Selenium
-TestRunner and Driven<br>
-<h3>TestRunner</h3>
-<img alt="standalone pic" src="images/SmallStandalone.png"
- style="width: 266px; height: 113px;"><br>
-<br>
-The TestRunner mode of operation for Selenium is where its HTML &amp;
-Javascript
-and the test suite are deployed alongside the Application Under Test
-(AUT) on a arbitrary web server. The test suite is coded as tables in a
-HTML page for each test.<br>
-<br>
-See <a href="testrunner.html">test runner documentation</a> for more
-information.<br>
-<h3>Driven</h3>
-<img alt="embedded pic" src="images/SmallEmbedded.png"
- style="width: 248px; height: 113px;">&nbsp; <br>
-Driven Selenium is where the browser is under the the control of a
-process on the same machine. That process is either a Java, .Net, Ruby
-or Python
-application and it is typically run in conjunction with a unit testing
-framework like JUnit or NUnit. Also possible, is a console application
-driving a browser interactively. <br>
-<br>
-The test script is one that would be recognisable to people adept with
-unit test frameworks :<br>
-<br>
-&nbsp; public void testOKClick() {<br>
-&nbsp;&nbsp;&nbsp; selenium.verifyTitle("First Page");<br>
-&nbsp;&nbsp;&nbsp; selenium.open("/TestPage.html");<br>
-&nbsp;&nbsp;&nbsp; selenium.click("OKButton");<br>
-&nbsp;&nbsp;&nbsp; selenium.verifyTitle("Another Page");<br>
-&nbsp; }<br>
-<br>
-The difference from normal unit testing is that as part of the startup,
-three major things have to happen:<br>
-<ol>
- <li>The test framework needs to publish a fresh copy of the AUT.
-Selenium prefers to mount its own web server temporarily for the
-purposes of testing.</li>
- <li>The test framework needs to publish the static Selenium's HTML
-pages and Javascript in an apparent directory
-on the same web server as (1).</li>
- <li>The test framework needs to open a browser instance and point it
-to Selenium.html served in (2) above.</li>
-</ol>
-As each of these is a fairly time consuming operation, it is best that
-all three of those happen in a one-time setup mode.&nbsp; As such, and
-even though these leverage a unit testing framework, this is definately
-for acceptance or functional rather than unit-testing.<br>
-<br>
-Some variations in the accesibility of the the webserver in question
-for testing purposes or its scriptablity mean a more complex setup is
-required:<br>
-<br>
-<img alt="Adjacent pic" src="images/SmallAdjacent.png"
- style="width: 239px; height: 229px;"><br>
-<br>
-See the <a href="driven.html">driven documentation</a> for more
-information.<br>
-<br>
-</div>
-</div>
-</body>
-</html>