C# Class Selenol.SelectorAttributes.XPathAttribute

The XPath selector attribute. Can be used for dynamic selection of elements or controls using XPath. An Element must be derived from BaseHtmlElement or it can be a collection assignable from ReadOnlyCollection{T}. A Control must be derived from Control or it can be a collection assignable from ReadOnlyCollection{TControl}. And used as an auto-property of class derived from BasePage.
Inheritance: BaseSelectorAttribute
显示文件 Open project: pbakshy/Selenol

Public Methods

Method Description
XPathAttribute ( string xpath ) : System.Collections.ObjectModel

Initializes a new instance of the XPathAttribute class.

Method Details

XPathAttribute() public method

Initializes a new instance of the XPathAttribute class.
public XPathAttribute ( string xpath ) : System.Collections.ObjectModel
xpath string The CSS selector.
return System.Collections.ObjectModel