Forum Discussion

alexbreu's avatar
alexbreu
New Contributor
7 years ago

Input a password with an inputbox

Hello,   I would like to input a string with an inputbox. The problem is that : if i iuse BuiltIn.inputBox(title,prompt,default), the input string is not hidden by special characters($,#,etc.). I ...
  • tristaanogre's avatar
    7 years ago

    BuiltIn.InputBox is intended to open a very simple dialog.  There are no fancy bells and whistles with this dialog like masking passwords or anything like that.

     

    If you want to have a dialog come up that prompts for a password and masks the data entry on screen, you'll want to use the "UserForms" feature of TestComplete.  When you add a TcxTextEdit component to a user form, under the properties for that component, there is a property called "EchoMode".  By default, that's set to eemNormal. If you change that to eemPassword, it masks the data entry on screen as the user types.

     

    See https://support.smartbear.com/testcomplete/docs/testing-with/advanced/user-forms/entering-passwords.html