C# Class OpenQA.Selenium.IE.Finder

Wrapper class for finding elements
Inheritance: ISearchContext, IFindsById, IFindsByLinkText, IFindsByName, IFindsByPartialLinkText, IFindsByTagName, IFindsByXPath, IFindsByClassName
Exibir arquivo Open project: epall/selenium

Public Methods

Method Description
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.

Method Details

FindElement() public method

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

FindElementByClassName() public method

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

FindElementById() public method

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

FindElementByLinkText() public method

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

FindElementByName() public method

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

FindElementByPartialLinkText() public method

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

FindElementByTagName() public method

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

FindElementByXPath() public method

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

FindElements() public method

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

FindElementsByClassName() public method

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
return ReadOnlyCollection

FindElementsById() public method

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

FindElementsByLinkText() public method

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

FindElementsByName() public method

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

FindElementsByPartialLinkText() public method

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

FindElementsByTagName() public method

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

FindElementsByXPath() public method

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

Finder() public method

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
return System.Collections.Generic