Search Results for

    Show / Hide Table of Contents

    Class TextBox

    Defines a wrapper for the core UWP TextBox control.

    Inheritance
    System.Object
    ElementWrapper<WindowsElement>
    WindowsElementWrapper
    TextBox
    PasswordBox
    Implements
    IElementWrapper<WindowsElement>
    Inherited Members
    WindowsElementWrapper.Driver
    WindowsElementWrapper.VerifyDriverElementShown(By, Nullable<TimeSpan>)
    WindowsElementWrapper.VerifyDriverElementsShown(By, Nullable<TimeSpan>)
    ElementWrapper<WindowsElement>.Element
    ElementWrapper<WindowsElement>.ElementDriver
    ElementWrapper<WindowsElement>.IsVisible
    ElementWrapper<WindowsElement>.IsEnabled
    ElementWrapper<WindowsElement>.Click()
    ElementWrapper<WindowsElement>.GetAttribute(String)
    ElementWrapper<WindowsElement>.FindElement(By)
    ElementWrapper<WindowsElement>.VerifyElementNotShown(By)
    ElementWrapper<WindowsElement>.VerifyElementShown(By)
    ElementWrapper<WindowsElement>.VerifyElementShown(By, Nullable<TimeSpan>)
    ElementWrapper<WindowsElement>.VerifyElementsShown(By)
    ElementWrapper<WindowsElement>.VerifyElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Windows.Elements.Core
    Assembly: Legerity.Windows.dll
    Syntax
    public class TextBox : WindowsElementWrapper, IElementWrapper<WindowsElement>

    Constructors

    | Improve this Doc View Source

    TextBox(WindowsElement)

    Initializes a new instance of the TextBox class.

    Declaration
    public TextBox(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The reference.

    Properties

    | Improve this Doc View Source

    IsReadonly

    Gets a value indicating whether the text box is in a readonly state.

    Declaration
    public virtual bool IsReadonly { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Text

    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 Source

    AppendText(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.

    | Improve this Doc View Source

    ClearText()

    Clears the text from the text box.

    Declaration
    public virtual void ClearText()
    | Improve this Doc View Source

    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 Source

    Implicit(AppiumWebElement to TextBox)

    Allows conversion of a to the TextBox without direct casting.

    Declaration
    public static implicit operator TextBox(AppiumWebElement element)
    Parameters
    Type Name Description
    AppiumWebElement element

    The .

    Returns
    Type Description
    TextBox

    The TextBox.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to TextBox)

    Allows conversion of a to the TextBox without direct casting.

    Declaration
    public static implicit operator TextBox(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The .

    Returns
    Type Description
    TextBox

    The TextBox.

    | Improve this Doc View Source

    Implicit(WindowsElement to TextBox)

    Allows conversion of a to the TextBox without direct casting.

    Declaration
    public static implicit operator TextBox(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The .

    Returns
    Type Description
    TextBox

    The TextBox.

    Implements

    IElementWrapper<TElement>

    Extension Methods

    WindowsElementWrapperExtensions.TryWaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32, Action<Exception>)
    WindowsElementWrapperExtensions.WaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps