Class IWebElementExtensions
Defines a collection of extensions for the 
Inheritance
System.Object
    IWebElementExtensions
  Namespace: Legerity.Web.Extensions
Assembly: Legerity.Web.dll
Syntax
public static class IWebElementExtensions : object
  Methods
| Improve this Doc View SourceGetInnerHtml(IWebElement)
Retrieves the inner HTML of the specified 
Declaration
public static string GetInnerHtml(this IWebElement element)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.String | A string representing the inner HTML.  | 
      
GetInnerHtml<TElement>(IElementWrapper<TElement>)
Retrieves the value attribute from the specified element.
Declaration
public static string GetInnerHtml<TElement>(this IElementWrapper<TElement> element)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve the inner HTML from.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The inner HTML of the element.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   | 
      
HasClass(IWebElement, String)
Determines whether the specified className.
Declaration
public static bool HasClass(this IWebElement element, string className)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IWebElement | element | The   | 
      
| System.String | className | The name of the class the element should have.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the element has the class; otherwise, false.  | 
      
HasClass<TElement>(IElementWrapper<TElement>, String)
Determines whether the specified IElementWrapper<TElement> has the specified className.
Declaration
public static bool HasClass<TElement>(this IElementWrapper<TElement> element, string className)
    where TElement : IWebElement
  Parameters
| Type | Name | Description | 
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to check.  | 
      
| System.String | className | The name of the class the element should have.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the element has the class; otherwise, false.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TElement | The type of   |