rem: this.reset(); 
add: this.defaultTimeout = Selenium.DEFAULT_TIMEOUT; 
context: function Selenium(browserbot) {	/**	 * Defines an object that runs Selenium commands.	 *	 * <h3><a name="locators"></a>Element Locators</h3>	 * <p>	 * Element Locators tell Selenium which HTML element a command refers to.	 * The format of a locator is:</p>	 * <blockquote>	 * <em>locatorType</em><strong>=</strong><em>argument</em>	 * </blockquote>	 *	 * <p>	 * We support the following strategies for locating elements:	 * </p>	 * <blockquote>	 * <dl>	 * <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>.	 * (This is normally the default; see below.)</dd>	 * <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>	 * <dd><ul class="first last simple">	 * <li>username</li>	 * <li>name=username</li>	 * </ul>	 * </dd>	 * <dd>The name may optionally be followed by one or more <em>element-filters</em>, separated from the name by whitespace.  If the <em>filterType</em> is not specified, <strong>value</strong> is assumed.</dd>	 *	 * <dd><ul class="first last simple">	 * <li>name=flavour value=chocolate</li>	 * </ul>	 * </dd>	 * <dt><strong>dom</strong>=<em>javascriptExpression</em></dt>	 *	 * <dd>	 *	 * <dd>Find an element using JavaScript traversal of the HTML Document Object	 * Model. DOM locators <em>must</em> begin with &quot;document.&quot;.	 * <ul class="first last simple">	 * <li>dom=document.forms['myForm'].myDropdown</li>	 * <li>dom=document.images[56]</li>	 * </ul>	 * </dd>	 *	 * </dd>	 *	 * <dt><strong>xpath</strong>=<em>xpathExpression</em></dt>	 * <dd>Locate an element using an XPath expression.	 * <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>	 * <dt><strong>link</strong>=<em>textPattern</em></dt>	 * <dd>Select the link (anchor) element which contains text matching the	 * specified <em>pattern</em>.	 * <ul class="first last simple">	 * <li>link=The link text</li>	 * </ul>	 *	 * </dd>	 *	 * <dt><strong>css</strong>=<em>cssSelectorSyntax</em></dt>	 * <dd>Select the element using css selectors. Please refer to <a href="http://www.w3.org/TR/REC-CSS2/selector.html">CSS2 selectors</a>, <a href="http://www.w3.org/TR/2001/CR-css3-selectors-20011113/">CSS3 selectors</a> for more information. You can also check the TestCssLocators test in the selenium test suite for an example of usage, which is included in the downloaded selenium core package.	 * <ul class="first last simple">	 * <li>css=a[href="#id3"]</li>	 * <li>css=span#firstChild + span</li>	 * </ul>	 * </dd>	 * <dd>Currently the css selector locator supports all css1, css2 and css3 selectors except namespace in css3, some pseudo classes(:nth-of-type, :nth-last-of-type, :first-of-type, :last-of-type, :only-of-type, :visited, :hover, :active, :focus, :indeterminate) and pseudo elements(::first-line, ::first-letter, ::selection, ::before, ::after). </dd>	 * </dl>	 * </blockquote>	 * <p>	 * Without an explicit locator prefix, Selenium uses the following default	 * strategies:	 * </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>	 *	 * <h3><a name="element-filters">Element Filters</a></h3>	 * <blockquote>	 * <p>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.</p>	 * <p>Filters look much like locators, ie.</p>	 * <blockquote>	 * <em>filterType</em><strong>=</strong><em>argument</em></blockquote>	 *	 * <p>Supported element-filters are:</p>	 * <p><strong>value=</strong><em>valuePattern</em></p>	 * <blockquote>	 * Matches elements based on their values.  This is particularly useful for refining a list of similarly-named toggle-buttons.</blockquote>	 * <p><strong>index=</strong><em>index</em></p>	 * <blockquote>	 * Selects a single element based on its position in the list (offset from zero).</blockquote>	 * </blockquote>	 *	 * <h3><a name="patterns"></a>String-match Patterns</h3>	 *	 * <p>	 * Various Pattern syntaxes are available for matching string values:	 * </p>	 * <blockquote>	 * <dl>	 * <dt><strong>glob:</strong><em>pattern</em></dt>	 * <dd>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.</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>	 * </blockquote>	 * <p>	 * If no pattern prefix is specified, Selenium assumes that it's a "glob"	 * pattern.	 * </p>	 */    this.browserbot = browserbot;    this.optionLocatorFactory = new OptionLocatorFactory();    this.page = function() {        return browserbot.getCurrentPage();    };    this.reset();}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/3b2513f7cae26cd54b5d9fe10371417d9edbfc6b/selenium-api.js/clean/code/javascript/core/scripts/selenium-api.js