Class AttributeExtensions
Defines a collection of extensions for retrieving element attributes.
Inheritance
System.Object
AttributeExtensions
Namespace: Legerity.Android.Extensions
Assembly: Legerity.Android.dll
Syntax
public static class AttributeExtensions : object
Methods
| Improve this Doc View SourceGetCheckedState(IWebElement)
Gets the value of the Android checked state for this element.
Declaration
public static bool GetCheckedState(this IWebElement element)
Parameters
Type | Name | Description |
---|---|---|
IWebElement | element | The element to retrieve the value from. |
Returns
Type | Description |
---|---|
System.Boolean | True if the element is checked; otherwise, false. |
GetCheckedState<TElement>(IElementWrapper<TElement>)
Gets the value of the Android checked state for this element.
Declaration
public static bool GetCheckedState<TElement>(this IElementWrapper<TElement> element)
where TElement : IWebElement
Parameters
Type | Name | Description |
---|---|---|
IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve the value from. |
Returns
Type | Description |
---|---|
System.Boolean | True if the element is checked; otherwise, false. |
Type Parameters
Name | Description |
---|---|
TElement | The type of |
GetContentDescription(IWebElement)
Gets the value of the Android content description for this element.
Declaration
public static string GetContentDescription(this IWebElement element)
Parameters
Type | Name | Description |
---|---|---|
IWebElement | element | The element to retrieve a content description for. |
Returns
Type | Description |
---|---|
System.String | The element's content description. |
GetContentDescription<TElement>(IElementWrapper<TElement>)
Gets the value of the Android content description for this element.
Declaration
public static string GetContentDescription<TElement>(this IElementWrapper<TElement> element)
where TElement : IWebElement
Parameters
Type | Name | Description |
---|---|---|
IElementWrapper<TElement> | element | The IElementWrapper<TElement> to retrieve a content description for. |
Returns
Type | Description |
---|---|
System.String | The element's content description. |
Type Parameters
Name | Description |
---|---|
TElement | The type of |