Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PasswordBox validation #57

Open
davishoang96 opened this issue Apr 5, 2018 · 2 comments
Open

PasswordBox validation #57

davishoang96 opened this issue Apr 5, 2018 · 2 comments

Comments

@davishoang96
Copy link

davishoang96 commented Apr 5, 2018

Hi Johan,

How can I get the value password from the passwordBox from the framework, something like

public void getPassword()
{
using (var app = Application.Launch("WpfApplication.exe"))
{
var window = app.MainWindow;
var passwordBox = window.FindPasswordBox("password_txt");
var value = admin123;
AssertException.AreEqual(value, passwordBox.password);
}
}

Thank you.

@JohanLarsson
Copy link
Member

I don't think adding support for getting the password out of a PasswordBox is a good idea. Reason for this is that it could be used for nefarious purposes.
Neither do I know if it is possible to do it.

What is your use case for this?

@davishoang96
Copy link
Author

My team are developing a checkpoint function for the automated testing tools. As the textbox, it was easy to validate the expected value although we can't validate the passwordBox because the black circles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants