Class AttributeExtensions
Defines a collection of extensions for retrieving element attributes.
Inheritance
System.Object
AttributeExtensions
Namespace: Legerity.Extensions
Assembly: Legerity.Core.dll
Syntax
public static class AttributeExtensions : object
Methods
| Improve this Doc View SourceGetName(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 |