Search Results for

    Show / Hide Table of Contents

    Class PasswordBox

    Defines a wrapper for the core UWP PasswordBox control.

    Inheritance
    System.Object
    ElementWrapper<WindowsElement>
    WindowsElementWrapper
    TextBox
    PasswordBox
    Implements
    IElementWrapper<WindowsElement>
    Inherited Members
    TextBox.Text
    TextBox.IsReadonly
    TextBox.SetText(String)
    TextBox.AppendText(String)
    TextBox.ClearText()
    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 PasswordBox : TextBox, IElementWrapper<WindowsElement>

    Constructors

    | Improve this Doc View Source

    PasswordBox(WindowsElement)

    Initializes a new instance of the PasswordBox class.

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

    The reference.

    Properties

    | Improve this Doc View Source

    Password

    Gets the password text value in the password box.

    Declaration
    public virtual string Password { get; }
    Property Value
    Type Description
    System.String
    Remarks

    To get the password text value, the password box must be revealed using the RevealPassword() method. Otherwise, the text value will be hidden characters.

    | Improve this Doc View Source

    RevealButton

    Gets the element associated with the reveal password button.

    Declaration
    public virtual ToggleButton RevealButton { get; }
    Property Value
    Type Description
    ToggleButton

    Methods

    | Improve this Doc View Source

    HidePassword()

    Hides the password text in the password box.

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

    RevealPassword()

    Reveals the password text in the password box.

    Declaration
    public virtual void RevealPassword()

    Operators

    | Improve this Doc View Source

    Implicit(AppiumWebElement to PasswordBox)

    Allows conversion of a to the PasswordBox without direct casting.

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

    The .

    Returns
    Type Description
    PasswordBox

    The PasswordBox.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to PasswordBox)

    Allows conversion of a to the PasswordBox without direct casting.

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

    The .

    Returns
    Type Description
    PasswordBox

    The PasswordBox.

    | Improve this Doc View Source

    Implicit(WindowsElement to PasswordBox)

    Allows conversion of a to the PasswordBox without direct casting.

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

    The .

    Returns
    Type Description
    PasswordBox

    The PasswordBox.

    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