Secure Textfield value in UIAutomation script

I have a login screen with a username field and password. In the UIAutomation script, I accessed the password field as

var passwordField = window.secureTextFields()["password"]; 

But when I accessed the passwordField value after entering the value through the uiautomation script on

 var password = passwordField.value(); 

But I get the password value as black dots (β€’β€’β€’β€’), i.e. as the default masking character for iPhone. How can I get the real password value?

+4
source share

Source: https://habr.com/ru/post/1393705/


All Articles