C# Class Selenol.Elements.ElementStyles

The element styles.
Mostrar archivo Open project: pbakshy/Selenol Class Usage Examples

Public Methods

Method Description
ElementStyles ( IWebElement webElement ) : System

Initializes a new instance of the ElementStyles class.

GetStyle ( string styleName ) : string

Gets a style of the element.

If the style does not exist empty string will be returned.

Private Methods

Method Description
ParseColor ( string styleName ) : Color
ParseInteger ( string value, bool allowHex = true ) : int

Method Details

ElementStyles() public method

Initializes a new instance of the ElementStyles class.
public ElementStyles ( IWebElement webElement ) : System
webElement IWebElement The web element.
return System

GetStyle() public method

Gets a style of the element.
If the style does not exist empty string will be returned.
public GetStyle ( string styleName ) : string
styleName string The style name.
return string