Represents the password input control (<input type="password">). Default search is performed by the label.

Inherited from Input.

Supports [Format] and [RandomizeStringSettings] settings attributes.

Syntax

[ControlDefinition("input[@type='password']")]
public class PasswordInput<TOwner> : Input<string, TOwner>
    where TOwner : PageObject<TOwner>

Example

<input type="password">
using Atata;

namespace SampleApp
{
    using _ = SamplePage;

    public class SamplePage : Page<_>
    {
        [FindFirst]
        public PasswordInput<_> Password { get; private set; }
    }
}
string password;

Go.To<SamplePage>().
    Password.SetRandom(out password).
    Password.Should.Equal(password);