C# Class OpenQA.Selenium.IE.Finder

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

Méthodes publiques

Méthode 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 méthode

Find the first element that matches the By mechanism
public FindElement ( By by ) : IWebElement
by By By mechanism
Résultat IWebElement

FindElementByClassName() public méthode

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

FindElementById() public méthode

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

FindElementByLinkText() public méthode

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

FindElementByName() public méthode

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

FindElementByPartialLinkText() public méthode

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

FindElementByTagName() public méthode

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

FindElementByXPath() public méthode

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

FindElements() public méthode

Find all Elements that match the By mechanism
public FindElements ( By by ) : ReadOnlyCollection
by By By mechanism
Résultat ReadOnlyCollection

FindElementsByClassName() public méthode

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
Résultat ReadOnlyCollection

FindElementsById() public méthode

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

FindElementsByLinkText() public méthode

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

FindElementsByName() public méthode

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

FindElementsByPartialLinkText() public méthode

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

FindElementsByTagName() public méthode

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

FindElementsByXPath() public méthode

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

Finder() public méthode

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
Résultat System.Collections.Generic