C# 클래스 OpenQA.Selenium.By

파일 보기 프로젝트 열기: asynchrony/Selenium2 1 사용 예제들

공개 메소드들

메소드 설명
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.

FindElement ( ISearchContext context ) : IWebElement

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.
리턴 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.
리턴 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

FindElement() 공개 메소드

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.
리턴 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.
리턴 By

Name() 공개 정적인 메소드

Gets a mechanism to find elements by their name.
public static Name ( string nameToFind ) : By
nameToFind string The name to find.
리턴 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.
리턴 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.
리턴 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.
리턴 By