C# Class SePSX.WebElementDecorator

Description of WebElementDecorator.
Inheritance: IWebElement, ISearchContext, IFindsByLinkText, IFindsById, IFindsByName, IFindsByTagName, IFindsByClassName, IFindsByXPath, IFindsByPartialLinkText, IFindsByCssSelector, IWrapsDriver, ILocatable
ファイルを表示 Open project: apetrovskiy/STUPS

Private Properties

Property Type Description

Public Methods

Method Description
Clear ( ) : void
Click ( ) : void
FindElement ( By by ) : IWebElement
FindElementByClassName ( string className ) : IWebElement

Finds the first element in the page that matches the CSS Class supplied

FindElementByCssSelector ( string cssSelector ) : IWebElement

Finds the first element matching the specified CSS selector.

FindElementById ( string id ) : IWebElement

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

FindElementByLinkText ( string linkText ) : IWebElement

Finds the first of elements that match the link text supplied

FindElementByName ( string name ) : IWebElement

Finds the first of elements that match the name supplied

FindElementByPartialLinkText ( string partialLinkText ) : IWebElement

Finds the first of elements that match the part of the link text supplied

FindElementByTagName ( string tagName ) : IWebElement

Finds the first of elements that match the DOM Tag supplied

FindElementByXPath ( string xpath ) : IWebElement

Finds the first of elements that match the XPath supplied

FindElements ( By by ) : ReadOnlyCollection
FindElementsByClassName ( string className ) : ReadOnlyCollection

Finds a list of elements that match the class name supplied

FindElementsByCssSelector ( string cssSelector ) : ReadOnlyCollection

Finds all elements matching the specified CSS selector.

FindElementsById ( string id ) : ReadOnlyCollection

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

FindElementsByLinkText ( string linkText ) : ReadOnlyCollection

Finds the first of elements that match the link text supplied

FindElementsByName ( string name ) : ReadOnlyCollection

Finds a list of elements that match the name supplied

FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection

Finds a list of elements that match the link text supplied

FindElementsByTagName ( string tagName ) : ReadOnlyCollection

Finds a list of elements that match the DOM Tag supplied

FindElementsByXPath ( string xpath ) : ReadOnlyCollection

Finds a list of elements that match the XPath supplied

GetAttribute ( string attributeName ) : string
GetCssValue ( string propertyName ) : string
SendKeys ( string text ) : void
Submit ( ) : void
WebElementDecorator ( RemoteWebElement realWebElement ) : System

Method Details

Clear() public method

public Clear ( ) : void
return void

Click() public method

public Click ( ) : void
return void

FindElement() public method

public FindElement ( By by ) : IWebElement
by OpenQA.Selenium.By
return IWebElement

FindElementByClassName() public method

Finds the first element in the page that matches the CSS Class supplied
public FindElementByClassName ( string className ) : IWebElement
className string CSS class name of the element on the page
return IWebElement

FindElementByCssSelector() public method

Finds the first element matching the specified CSS selector.
public FindElementByCssSelector ( string cssSelector ) : IWebElement
cssSelector string The id to match.
return IWebElement

FindElementById() public method

Finds the first element in the page that matches the ID supplied
public FindElementById ( string id ) : IWebElement
id string ID of the element
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

Finds the first of elements that match the name supplied
public FindElementByName ( string name ) : IWebElement
name string Name of the element
return IWebElement

FindElementByPartialLinkText() public method

Finds the first of elements that match the part of the link text supplied
public FindElementByPartialLinkText ( string partialLinkText ) : IWebElement
partialLinkText string part of the link text
return IWebElement

FindElementByTagName() public method

Finds the first of elements that match the DOM Tag supplied
public FindElementByTagName ( string tagName ) : IWebElement
tagName string tag name of the element
return IWebElement

FindElementByXPath() public method

Finds the first of elements that match the XPath supplied
public FindElementByXPath ( string xpath ) : IWebElement
xpath string xpath to the element
return IWebElement

FindElements() public method

public FindElements ( By by ) : ReadOnlyCollection
by OpenQA.Selenium.By
return ReadOnlyCollection

FindElementsByClassName() public method

Finds a list of elements that match the class name supplied
public FindElementsByClassName ( string className ) : ReadOnlyCollection
className string CSS class name of the elements on the page
return ReadOnlyCollection

FindElementsByCssSelector() public method

Finds all elements matching the specified CSS selector.
public FindElementsByCssSelector ( string cssSelector ) : ReadOnlyCollection
cssSelector string The CSS selector to match.
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 the first of elements that match the link text supplied
public FindElementsByLinkText ( string linkText ) : ReadOnlyCollection
linkText string Link text of element
return ReadOnlyCollection

FindElementsByName() public method

Finds a list of elements that match the name supplied
public FindElementsByName ( string name ) : ReadOnlyCollection
name string Name of element
return ReadOnlyCollection

FindElementsByPartialLinkText() public method

Finds a list of elements that match the link text supplied
public FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection
partialLinkText string part of the link text
return ReadOnlyCollection

FindElementsByTagName() public method

Finds a list of elements that match the DOM Tag supplied
public FindElementsByTagName ( string tagName ) : ReadOnlyCollection
tagName string DOM Tag of the element on the page
return ReadOnlyCollection

FindElementsByXPath() public method

Finds a list of elements that match the XPath supplied
public FindElementsByXPath ( string xpath ) : ReadOnlyCollection
xpath string xpath to element on the page
return ReadOnlyCollection

GetAttribute() public method

public GetAttribute ( string attributeName ) : string
attributeName string
return string

GetCssValue() public method

public GetCssValue ( string propertyName ) : string
propertyName string
return string

SendKeys() public method

public SendKeys ( string text ) : void
text string
return void

Submit() public method

public Submit ( ) : void
return void

WebElementDecorator() public method

public WebElementDecorator ( RemoteWebElement realWebElement ) : System
realWebElement OpenQA.Selenium.Remote.RemoteWebElement
return System