Class AttributeExtensions
Defines a collection of extensions for retrieving element attributes.
Inheritance
System.Object
AttributeExtensions
Namespace: Legerity.IOS.Extensions
Assembly: Legerity.IOS.dll
Syntax
public static class AttributeExtensions : object
Methods
| Improve this Doc View SourceGetLabel(IWebElement)
Retrieves the label attribute from the specified element.
Declaration
public static string GetLabel(this IWebElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebElement | element | The |
Returns
| Type | Description |
|---|---|
| System.String | The label of the element. |
GetLabel<TElement>(IElementWrapper<TElement>)
Retrieves the label attribute from the specified element.
Declaration
public static string GetLabel<TElement>(this IElementWrapper<TElement> element)
where TElement : IWebElement
Parameters
| Type | Name | Description |
|---|---|---|
| IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a label from. |
Returns
| Type | Description |
|---|---|
| System.String | The label 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 |