Class EditText
Defines a
Implements
IElementWrapper<AndroidElement>
Inherited Members
Namespace: Legerity.Android.Elements.Core
Assembly: Legerity.Android.dll
Syntax
public class EditText : AndroidElementWrapper, IElementWrapper<AndroidElement>
Constructors
| Improve this Doc View SourceEditText(AndroidElement)
Initializes a new instance of the EditText class.
Declaration
public EditText(AndroidElement element)
Parameters
Type | Name | Description |
---|---|---|
AndroidElement | element | The |
Properties
| Improve this Doc View SourceText
Gets the text value of the text box.
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 box.
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 box.
Declaration
public virtual void ClearText()
SetText(String)
Sets the text of the text box 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(AndroidElement to EditText)
Allows conversion of a
Declaration
public static implicit operator EditText(AndroidElement element)
Parameters
Type | Name | Description |
---|---|---|
AndroidElement | element | The |
Returns
Type | Description |
---|---|
EditText | The EditText. |
Implicit(AppiumWebElement to EditText)
Allows conversion of a
Declaration
public static implicit operator EditText(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
EditText | The EditText. |
Implicit(RemoteWebElement to EditText)
Allows conversion of a
Declaration
public static implicit operator EditText(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
EditText | The EditText. |