Class PasswordBox
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class PasswordBox : TextBox, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourcePasswordBox(WindowsElement)
Initializes a new instance of the PasswordBox class.
Declaration
public PasswordBox(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourcePassword
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.
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 SourceHidePassword()
Hides the password text in the password box.
Declaration
public virtual void HidePassword()
RevealPassword()
Reveals the password text in the password box.
Declaration
public virtual void RevealPassword()
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to PasswordBox)
Allows conversion of a
Declaration
public static implicit operator PasswordBox(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
PasswordBox | The PasswordBox. |
Implicit(RemoteWebElement to PasswordBox)
Allows conversion of a
Declaration
public static implicit operator PasswordBox(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
PasswordBox | The PasswordBox. |
Implicit(WindowsElement to PasswordBox)
Allows conversion of a
Declaration
public static implicit operator PasswordBox(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
PasswordBox | The PasswordBox. |