Ask a Question

Password Dialog Focus

Prudential_UK_A
Frequent Contributor

Password Dialog Focus

Hi,
I am using UISupport.getDialogs().prompt() and UISupport.getDialogs().promptPassword() to get a username and password (respectively) from the user in the project setup script.
I find that prompt() gives a dialog with focus on the test field whereas promptPassword() you have to click on the password filed first before you can enter it.
How would I set the focus to the password entry field?
Regards
Peter
2 REPLIES 2
SmartBear_Suppo
SmartBear Alumni (Retired)

I have fixed this behavior so that the password field now automatically receives focus once the dialog is presented. The change should be available in future nightly builds starting with tomorrows date. Also, did you know you can use UISupport.prompt(...) and UISupport.promptPassword(...) directly? These are simply convenience methods that internally call the getDialogs() method.

Regards,
Dain
eviware.com

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
M_McDonald
Super Contributor

You could also look at the code for a username/password dialog in http://www.eviware.com/forums/index.php?topic=1619.0
"Ignorance more frequently begets confidence than does knowledge"
cancel
Showing results for 
Search instead for 
Did you mean: