C# Класс SePSXUnitTests.FakeBy

Показать файл Открыть проект

Открытые методы

Метод Описание
ClassName ( string classNameToFind ) : By

Gets a mechanism to find elements by their CSS class.

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".

CssSelector ( string cssSelectorToFind ) : By

Gets a mechanism to find elements by their cascading stylesheet (CSS) selector.

Equals ( object obj ) : bool

Determines whether the specified Object is equal to the current Object.

FakeBy ( ) : System
FindElement ( ISearchContext context ) : IWebElement

/// Determines if two T:OpenQA.Selenium.By instances are equal. ///

/// Determines if two T:OpenQA.Selenium.By instances are unequal. ///

/// Finds the first element matching the criteria. ///

FindElements ( ISearchContext context ) : ReadOnlyCollection

Finds all elements matching the criteria.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

Id ( string idToFind ) : By

Gets a mechanism to find elements by their ID.

LinkText ( string linkTextToFind ) : By

Gets a mechanism to find elements by their link text.

Name ( string nameToFind ) : By

Gets a mechanism to find elements by their name.

PartialLinkText ( string partialLinkTextToFind ) : By

Gets a mechanism to find elements by a partial match on their link text.

TagName ( string tagNameToFind ) : By

Gets a mechanism to find elements by their tag name.

ToString ( ) : string

Gets a string representation of the finder.

XPath ( string xpathToFind ) : By

Gets a mechanism to find elements by an XPath query.

Описание методов

ClassName() публичный статический Метод

Gets a mechanism to find elements by their CSS class.
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".
public static ClassName ( string classNameToFind ) : By
classNameToFind string The CSS class to find.
Результат OpenQA.Selenium.By

CssSelector() публичный статический Метод

Gets a mechanism to find elements by their cascading stylesheet (CSS) selector.
public static CssSelector ( string cssSelectorToFind ) : By
cssSelectorToFind string The CSS selector to find.
Результат OpenQA.Selenium.By

Equals() публичный Метод

Determines whether the specified Object is equal to the current Object.
public Equals ( object obj ) : bool
obj object The Object to compare with the /// current Object.
Результат bool

FakeBy() публичный Метод

public FakeBy ( ) : System
Результат System

FindElement() публичный Метод

/// Determines if two T:OpenQA.Selenium.By instances are equal. /// /// Determines if two T:OpenQA.Selenium.By instances are unequal. /// /// Finds the first element matching the criteria. ///
public FindElement ( ISearchContext context ) : IWebElement
context ISearchContext An object to use to search for the elements.
Результат IWebElement

FindElements() публичный Метод

Finds all elements matching the criteria.
public FindElements ( ISearchContext context ) : ReadOnlyCollection
context ISearchContext An object to use to search for the elements.
Результат ReadOnlyCollection

GetHashCode() публичный Метод

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Результат int

Id() публичный статический Метод

Gets a mechanism to find elements by their ID.
public static Id ( string idToFind ) : By
idToFind string The ID to find.
Результат OpenQA.Selenium.By

LinkText() публичный статический Метод

Gets a mechanism to find elements by their link text.
public static LinkText ( string linkTextToFind ) : By
linkTextToFind string The link text to find.
Результат OpenQA.Selenium.By

Name() публичный статический Метод

Gets a mechanism to find elements by their name.
public static Name ( string nameToFind ) : By
nameToFind string The name to find.
Результат OpenQA.Selenium.By

PartialLinkText() публичный статический Метод

Gets a mechanism to find elements by a partial match on their link text.
public static PartialLinkText ( string partialLinkTextToFind ) : By
partialLinkTextToFind string The partial link text to find.
Результат OpenQA.Selenium.By

TagName() публичный статический Метод

Gets a mechanism to find elements by their tag name.
public static TagName ( string tagNameToFind ) : By
tagNameToFind string The tag name to find.
Результат OpenQA.Selenium.By

ToString() публичный Метод

Gets a string representation of the finder.
public ToString ( ) : string
Результат string

XPath() публичный статический Метод

Gets a mechanism to find elements by an XPath query.
public static XPath ( string xpathToFind ) : By
xpathToFind string The XPath query to use.
Результат OpenQA.Selenium.By