C# 클래스 OpenQA.Selenium.IE.Finder

Wrapper class for finding elements
상속: ISearchContext, IFindsById, IFindsByLinkText, IFindsByName, IFindsByPartialLinkText, IFindsByTagName, IFindsByXPath, IFindsByClassName
파일 보기 프로젝트 열기: epall/selenium

공개 메소드들

메소드 설명
FindElement ( By by ) : IWebElement

Find the first element that matches the By mechanism

FindElementByClassName ( string className ) : IWebElement

Method to return the first element that matches the CSS class passed in

FindElementById ( string id ) : IWebElement

Find the first element that has this ID

FindElementByLinkText ( string linkText ) : IWebElement

Finds the first of elements that match the link text supplied

FindElementByName ( string name ) : IWebElement

Find the first element that matches by name

FindElementByPartialLinkText ( string partialLinkText ) : IWebElement

Find the first element that matches part of the text

FindElementByTagName ( string tagName ) : IWebElement

Find the first element that matches the tag

FindElementByXPath ( string xpath ) : IWebElement

Find the first element that matches the XPath

FindElements ( By by ) : ReadOnlyCollection

Find all Elements that match the By mechanism

FindElementsByClassName ( string className ) : ReadOnlyCollection

Method to find all the elements on the page that match the CSS Classname

FindElementsById ( string id ) : ReadOnlyCollection

Finds the first element in the page that matches the ID supplied

FindElementsByLinkText ( string linkText ) : ReadOnlyCollection

Finds a list of elements that match the link text supplied

FindElementsByName ( string name ) : ReadOnlyCollection

Find all the elements that match the name

FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection

Method to return all elements that match the link text passed in

FindElementsByTagName ( string tagName ) : ReadOnlyCollection

Find all elements that match the tag

FindElementsByXPath ( string xpath ) : ReadOnlyCollection

Find all the elements taht match the XPath

Finder ( InternetExplorerDriver driver, SafeInternetExplorerWebElementHandle parent ) : System.Collections.Generic

Initializes a new instance of the Finder class.

메소드 상세

FindElement() 공개 메소드

Find the first element that matches the By mechanism
public FindElement ( By by ) : IWebElement
by By By mechanism
리턴 IWebElement

FindElementByClassName() 공개 메소드

Method to return the first element that matches the CSS class passed in
public FindElementByClassName ( string className ) : IWebElement
className string CSS class name
리턴 IWebElement

FindElementById() 공개 메소드

Find the first element that has this ID
public FindElementById ( string id ) : IWebElement
id string ID of web element on the page
리턴 IWebElement

FindElementByLinkText() 공개 메소드

Finds the first of elements that match the link text supplied
public FindElementByLinkText ( string linkText ) : IWebElement
linkText string Link text of element
리턴 IWebElement

FindElementByName() 공개 메소드

Find the first element that matches by name
public FindElementByName ( string name ) : IWebElement
name string Name of the element
리턴 IWebElement

FindElementByPartialLinkText() 공개 메소드

Find the first element that matches part of the text
public FindElementByPartialLinkText ( string partialLinkText ) : IWebElement
partialLinkText string text to be use
리턴 IWebElement

FindElementByTagName() 공개 메소드

Find the first element that matches the tag
public FindElementByTagName ( string tagName ) : IWebElement
tagName string tagName of element on the page
리턴 IWebElement

FindElementByXPath() 공개 메소드

Find the first element that matches the XPath
public FindElementByXPath ( string xpath ) : IWebElement
xpath string XPath to the element
리턴 IWebElement

FindElements() 공개 메소드

Find all Elements that match the By mechanism
public FindElements ( By by ) : ReadOnlyCollection
by By By mechanism
리턴 ReadOnlyCollection

FindElementsByClassName() 공개 메소드

Method to find all the elements on the page that match the CSS Classname
public FindElementsByClassName ( string className ) : ReadOnlyCollection
className string CSS Class you wish to find
리턴 ReadOnlyCollection

FindElementsById() 공개 메소드

Finds the first element in the page that matches the ID supplied
public FindElementsById ( string id ) : ReadOnlyCollection
id string ID of the Element
리턴 ReadOnlyCollection

FindElementsByLinkText() 공개 메소드

Finds a list of elements that match the link text supplied
public FindElementsByLinkText ( string linkText ) : ReadOnlyCollection
linkText string Link text of element
리턴 ReadOnlyCollection

FindElementsByName() 공개 메소드

Find all the elements that match the name
public FindElementsByName ( string name ) : ReadOnlyCollection
name string Name of element on the page
리턴 ReadOnlyCollection

FindElementsByPartialLinkText() 공개 메소드

Method to return all elements that match the link text passed in
public FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection
partialLinkText string Text to search for
리턴 ReadOnlyCollection

FindElementsByTagName() 공개 메소드

Find all elements that match the tag
public FindElementsByTagName ( string tagName ) : ReadOnlyCollection
tagName string tagName of element on the page
리턴 ReadOnlyCollection

FindElementsByXPath() 공개 메소드

Find all the elements taht match the XPath
public FindElementsByXPath ( string xpath ) : ReadOnlyCollection
xpath string XPath to the element
리턴 ReadOnlyCollection

Finder() 공개 메소드

Initializes a new instance of the Finder class.
public Finder ( InternetExplorerDriver driver, SafeInternetExplorerWebElementHandle parent ) : System.Collections.Generic
driver InternetExplorerDriver InternetExplorerDriver in use
parent SafeInternetExplorerWebElementHandle ElementHandle to for use with the Native methods
리턴 System.Collections.Generic