C# Class Selenol.Validation.Element.TagAttribute

Inheritance: System.Attribute, IElementValidator
显示文件 Open project: pbakshy/Selenol Class Usage Examples

Public Methods

Method Description
GetErrorMessage ( BaseHtmlElement element ) : string

Gets an error message for an invalid element.

TagAttribute ( string tagName ) : System

Initializes a new instance of the TagAttribute class.

Validate ( BaseHtmlElement element ) : bool

Validates an element.

Method Details

GetErrorMessage() public method

Gets an error message for an invalid element.
public GetErrorMessage ( BaseHtmlElement element ) : string
element BaseHtmlElement The invalid element.
return string

TagAttribute() public method

Initializes a new instance of the TagAttribute class.
public TagAttribute ( string tagName ) : System
tagName string The tag name.
return System

Validate() public method

Validates an element.
public Validate ( BaseHtmlElement element ) : bool
element BaseHtmlElement The element.
return bool