HtmlElement.Net
Public Member Functions | List of all members
HtmlElements.ElementGroup Class Reference

Named group of related WebElements. More...

Public Member Functions

 ElementGroup (params string[] groups)
 Initializes a new instance of the ElementGroup class. More...
 
IDictionary< string, IWebElement > GetElements (object pageObject)
 Retrieves all WebElements marked with ElementGroupAttribute and matching group name. More...
 

Detailed Description

Named group of related WebElements.

Constructor & Destructor Documentation

◆ ElementGroup()

HtmlElements.ElementGroup.ElementGroup ( params string[]  groups)

Initializes a new instance of the ElementGroup class.

Parameters
groupsList of group names WebElements belongs to.

Member Function Documentation

◆ GetElements()

IDictionary<string, IWebElement> HtmlElements.ElementGroup.GetElements ( object  pageObject)

Retrieves all WebElements marked with ElementGroupAttribute and matching group name.

Parameters
pageObjectPage object which fields and properties is being scanned.
Returns
List of WebElements which belong to current group.