Forum Discussion

Prudential_UK_A's avatar
Prudential_UK_A
Frequent Contributor
15 years ago

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

  • SmartBear_Suppo's avatar
    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