Skip to content

Instantly share code, notes, and snippets.

@YevgeniyShunevych
Last active March 18, 2020 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YevgeniyShunevych/d00c0dbfdcc6a50b57961cc3797def76 to your computer and use it in GitHub Desktop.
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 *****.
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