Class TextInput
Defines a
Implements
IElementWrapper<RemoteWebElement>
Inherited Members
Namespace: Legerity.Web.Elements.Core
Assembly: Legerity.Web.dll
Syntax
public class TextInput : WebElementWrapper, IElementWrapper<RemoteWebElement>
Constructors
| Improve this Doc View SourceTextInput(IWebElement)
Initializes a new instance of the TextInput class.
Declaration
public TextInput(IWebElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebElement | element | The |
TextInput(RemoteWebElement)
Initializes a new instance of the TextInput class.
Declaration
public TextInput(RemoteWebElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| RemoteWebElement | element | The |
Properties
| Improve this Doc View SourceText
Gets the text value of the text input.
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(RemoteWebElement to TextInput)
Allows conversion of a
Declaration
public static implicit operator TextInput(RemoteWebElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| RemoteWebElement | element | The |
Returns
| Type | Description |
|---|---|
| TextInput | The TextInput. |