C# Класс OpenQA.Selenium.IE.Finder

Wrapper class for finding elements
Наследование: ISearchContext, IFindsById, IFindsByLinkText, IFindsByName, IFindsByPartialLinkText, IFindsByTagName, IFindsByXPath, IFindsByClassName
Показать файл Открыть проект

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

Метод Описание
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