Class AttributeExtensions
Defines a collection of extensions for retrieving element attributes.
Inheritance
Namespace: Legerity.Web.Extensions
Assembly: Legerity.Web.dll
Syntax
public static class AttributeExtensions : object
  Methods
| Improve this Doc View SourceGetClass(IWebElement)
Retrieves the class attribute from the specified element.
Declaration
public static string GetClass(this IWebElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The class of the element.  | 
      
GetClass<TElement>(IElementWrapper<TElement>)
Retrieves the class attribute from the specified element.
Declaration
public static string GetClass<TElement>(this IElementWrapper<TElement> element)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a class from.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The class of the element.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   | 
      
GetHeight(IWebElement)
Retrieves the height attribute from the specified element.
Declaration
public static double GetHeight(this IWebElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The height of the element.  | 
      
GetHeight<TElement>(IElementWrapper<TElement>)
Retrieves the height attribute from the specified element.
Declaration
public static double GetHeight<TElement>(this IElementWrapper<TElement> element)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a height from.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The height of the element.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   | 
      
GetMaximum(IWebElement)
Retrieves the maximum attribute from the specified element.
Declaration
public static double GetMaximum(this IWebElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The maximum value of the element.  | 
      
GetMaximum<TElement>(IElementWrapper<TElement>)
Retrieves the maximum attribute from the specified element.
Declaration
public static double GetMaximum<TElement>(this IElementWrapper<TElement> element)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a maximum from.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The maximum value of the element.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   | 
      
GetMinimum(IWebElement)
Retrieves the minimum attribute from the specified element.
Declaration
public static double GetMinimum(this IWebElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The minimum value of the element.  | 
      
GetMinimum<TElement>(IElementWrapper<TElement>)
Retrieves the minimum attribute from the specified element.
Declaration
public static double GetMinimum<TElement>(this IElementWrapper<TElement> element)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a minimum from.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The minimum value of the element.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   | 
      
GetName(IWebElement)
Retrieves the name attribute from the specified element.
Declaration
public static string GetName(this IWebElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The name of the element.  | 
      
GetName<TElement>(IElementWrapper<TElement>)
Retrieves the name attribute from the specified element.
Declaration
public static string GetName<TElement>(this IElementWrapper<TElement> element)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a name from.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The name of the element.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   | 
      
GetValue(IWebElement)
Retrieves the value attribute from the specified element.
Declaration
public static string GetValue(this IWebElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The value of the element.  | 
      
GetValue<TElement>(IElementWrapper<TElement>)
Retrieves the value attribute from the specified element.
Declaration
public static string GetValue<TElement>(this IElementWrapper<TElement> element)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a value from.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The value of the element.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   | 
      
GetWidth(IWebElement)
Retrieves the width attribute from the specified element.
Declaration
public static double GetWidth(this IWebElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The width of the element.  | 
      
GetWidth<TElement>(IElementWrapper<TElement>)
Retrieves the width attribute from the specified element.
Declaration
public static double GetWidth<TElement>(this IElementWrapper<TElement> element)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a width from.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The width of the element.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   |