<?xml version="1.0"?>
<doc>
<assembly>
<name>WebDriver</name>
</assembly>
<members>
<member name="T:OpenQA.Selenium.By">
<summary>
Provides a mechanism by which to find elements within a document.
</summary>
<remarks>It is possible to create your own locating mechanisms for finding documents.
In order to do this,subclass this class and override the protected methods. However,
it is expected that that all subclasses rely on the basic finding mechanisms provided
through static methods of this class. An example of this can be found in OpenQA.Support.ByIdOrName
</remarks>
</member>
<member name="M:OpenQA.Selenium.By.#ctor">
<summary>
Initializes a new instance of the <see cref="T:OpenQA.Selenium.By" /> class.
</summary>
</member>
<member name="M:OpenQA.Selenium.By.#ctor(System.Func{OpenQA.Selenium.ISearchContext,OpenQA.Selenium.IWebElement},System.Func{OpenQA.Selenium.ISearchContext,System.Collections.ObjectModel.ReadOnlyCollection{OpenQA.Selenium.IWebElement}})">
<summary>
Initializes a new instance of the <see cref="T:OpenQA.Selenium.By" /> class using the given functions to find elements.
</summary>
<param name="findElementMethod">A function that takes an object implementing <see cref="T:OpenQA.Selenium.ISearchContext" />
and returns the found <see cref="T:OpenQA.Selenium.IWebElement" />.</param>
<param name="findElementsMethod">A function that takes an object implementing <see cref="T:OpenQA.Selenium.ISearchContext" />
and returns a <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> of the found<see cref="T:OpenQA.Selenium.IWebElement">IWebElements</see>.
<see cref="T:OpenQA.Selenium.IWebElement">IWebElements</see>/>.</param>
</member>
<member name="M:OpenQA.Selenium.By.Id(System.String)">
<summary>
Gets a mechanism to find elements by their ID.
</summary>
<param name="idToFind">The ID to find.</param>
<returns>A <see cref="T:OpenQA.Selenium.By" /> object the driver can use to find the elements.</returns>
</member>
<member name="M:OpenQA.Selenium.By.LinkText(System.String)">
<summary>
Gets a mechanism to find elements by their link text.
</summary>
<param name="linkTextToFind">The link text to find.</param>
<returns>A <see cref="T:OpenQA.Selenium.By" /> object the driver can use to find the elements.</returns>
</member>
<member name="M:OpenQA.Selenium.By.Name(System.String)">
<summary>
Gets a mechanism to find elements by their name.
</summary>
<param name="nameToFind">The name to find.</param>
<returns>A <see cref="T:OpenQA.Selenium.By" /> object the driver can use to find the elements.</returns>
</member>
<member name="M:OpenQA.Selenium.By.XPath(System.String)">
<summary>
Gets a mechanism to find elements by an XPath query.
When searching within a WebElement using xpath be aware that WebDriver follows standard conventions:
a search prefixed with "//" will search the entire document, not just the children of this current node.
Use ".//" to limit your search to the children of this WebElement.
</summary>
<param name="xpathToFind">The XPath query to use.</param>
<returns>A <see cref="T:OpenQA.Selenium.By" /> object the driver can use to find the elements.</returns>
</member>
<member name="M:OpenQA.Selenium.By.ClassName(System.String)">
<summary>
Gets a mechanism to find elements by their CSS class.
</summary>
<param name="classNameToFind">The CSS class to find.</param>
<returns>A <see cref="T:OpenQA.Selenium.By" /> object the driver can use to find the elements.</returns>
<remarks>If an element has many classes then this will match against each of them.
For example if the value is "one two onone", then the following values for the
className parameter will match: "one" and "two".</remarks>
</member>
<member name="M:OpenQA.Selenium.By.PartialLinkText(System.String)">
<summary>
Gets a mechanism to find elements by a partial match on their link text.
</summary>
<param name="partialLinkTextToFind">The partial link text to find.</param>
<returns>A <see cref="T:OpenQA.Selenium.By" /> object the driver can use to find the elements.</returns>
</member>
<member name="M:OpenQA.Selenium.By.TagName(System.String)">
<summary>
Gets a mechanism to find elements by their tag name.
</summary>
<param name="tagNameToFind">The tag name to find.</param>
<returns>A <see cref="T:OpenQA.Selenium.By" /> object the driver can use to find the elements.</returns>
</member>
<member name="M:OpenQA.Selenium.By.CssSelector(System.String)">
<summary>
Gets a mechanism to find elements by their cascading style sheet (CSS) selector.
</summary>
<param name="cssSelectorToFind">The CSS selector to find.</param>
<returns>A <see cref="T:OpenQA.Selenium.By" /> object the driver can use to find the elements.</returns>
</member>
<member name="M:OpenQA.Selenium.By.op_Equality(OpenQA.Selenium.By,OpenQA.Selenium.By)">
<summary>
Determines if two <see cref="T:OpenQA.Selenium.By" /> instances are equal.
</summary>
<param name="one">One instance to compare.</param>
<param name="two">The other instance to compare.</param>
<returns>
<see langword="true" /> if the two instances are equal; otherwise, <see langword="false" />.</returns>
</member>
<member name="M:OpenQA.Selenium.By.op_Inequality(OpenQA.Selenium.By,OpenQA.Selenium.By)">
<summary>
Determines if two <see cref="T:OpenQA.Selenium.By" /> instances are unequal.
</summary>s
<param name="one">One instance to compare.</param><param name="two">The other instance to compare.</param><returns><see langword="true" /> if the two instances are not equal; otherwise, <see langword="false" />.</returns></member>
<member name="M:OpenQA.Selenium.By.FindElement(OpenQA.Selenium.ISearchContext)">
<summary>
Finds the first element matching the criteria.
</summary>
<param name="context">An <see cref="T:OpenQA.Selenium.ISearchContext" /> object to use to search for the elements.</param>
<returns>The first matching <see cref="T:OpenQA.Selenium.IWebElement" /> on the current context.</returns>
</member>
<member name="M:OpenQA.Selenium.By.FindElements(OpenQA.Selenium.ISearchContext)">
<summary>
Finds all elements matching the criteria.
</summary>
<param name="context">An <see cref="T:OpenQA.Selenium.ISearchContext" /> object to use to search for the elements.</param>
<returns>A <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> of all <see cref="T:OpenQA.Selenium.IWebElement">WebElements</see>
matching the current criteria, or an empty list if nothing matches.</returns>
</member>
<member name="M:OpenQA.Selenium.By.ToString">
<summary>
Gets a string representation of the finder.
</summary>
<returns>The string displaying the finder content.</returns>
</member>
<member name="M:OpenQA.Selenium.By.Equals(System.Object)">
<summary>
Determines whether the specified <see cref="T:System.Object">Object</see> is equal
to the current <see cref="T:System.Object">Object</see>.
</summary>
<param name="obj">The <see cref="
评论0