Last active
March 18, 2020 12:39
-
-
Save YevgeniyShunevych/d00c0dbfdcc6a50b57961cc3797def76 to your computer and use it in GitHub Desktop.
Atata secure password input. Works the same way as a regular PasswordInput<TOwner> but in log hides the password value during setting replacing it with *****.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Atata | |
{ | |
[ControlDefinition("input[@type='password']", ComponentTypeName = "password input")] | |
[ValueGetFormat("{0}")] | |
[ValueSetFormat("{0}")] | |
public class SecurePasswordInput<TOwner> : Input<string, TOwner> | |
where TOwner : PageObject<TOwner> | |
{ | |
protected override string ConvertValueToString(string value) | |
{ | |
return "*****"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment