Class TextField
Defines a
Implements
IElementWrapper<IOSElement>
Inherited Members
Namespace: Legerity.IOS.Elements.Core
Assembly: Legerity.IOS.dll
Syntax
public class TextField : IOSElementWrapper, IElementWrapper<IOSElement>
Constructors
| Improve this Doc View SourceTextField(IOSElement)
Initializes a new instance of the TextField class.
Declaration
public TextField(IOSElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| IOSElement | element | The |
Properties
| Improve this Doc View SourceClearTextButton
Gets the element associated with the clear text button, if shown.
Declaration
public virtual Button ClearTextButton { get; }
Property Value
| Type | Description |
|---|---|
| Button |
Text
Gets the text value of the text field.
Declaration
public virtual string Text { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceAppendText(String)
Appends the specified text to the text field.
Declaration
public virtual void AppendText(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | The text to append. |
ClearText()
Clears the text from the text field.
Declaration
public virtual void ClearText()
SetText(String)
Sets the text of the text field to the specified text.
Declaration
public virtual void SetText(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | The text to display. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to TextField)
Allows conversion of a
Declaration
public static implicit operator TextField(AppiumWebElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| AppiumWebElement | element | The |
Returns
| Type | Description |
|---|---|
| TextField | The TextField. |
Implicit(IOSElement to TextField)
Allows conversion of a
Declaration
public static implicit operator TextField(IOSElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| IOSElement | element | The |
Returns
| Type | Description |
|---|---|
| TextField | The TextField. |
Implicit(RemoteWebElement to TextField)
Allows conversion of a
Declaration
public static implicit operator TextField(RemoteWebElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| RemoteWebElement | element | The |
Returns
| Type | Description |
|---|---|
| TextField | The TextField. |