Forum Discussion

sandhyaramesh's avatar
sandhyaramesh
New Contributor
8 years ago
Solved

Unable to enter password in WndClass: TcxCustomInnerTextEdit type password field

Hi,

 

We are facing issue with password type field.

As per below code after it enters password, OK button is not enabled. We have checked information on working with password type variable, where only SetText and Keys will work, but here even though it enters password its not working like manual steps(where OK button will be enabled after entering password).  If we click on password field it goes blank, same thing with user name field, user name is retained it will not be blank. Please let us know your inputs.

 

 

Password variable created in project > variables tab as below

 

 

Regards

Sandhya

  • sandhyaramesh's avatar
    sandhyaramesh
    8 years ago

    Hi,

     

    Thanks for your suggesstions.

     

    Aliases.MyLongControlName.Keys(Project.Variables.Password + [Tab])

    This gave me syntax error, same thing i split into 2 statements as below and it works as expected.

     

    Aliases.LandmarkII.frmLogon.edtPassword.TcxCustomInnerTextEdit.SetText(Project.Variables.Password)

    Aliases.LandmarkII.frmLogon.edtPassword.TcxCustomInnerTextEdit.Keys "[Tab]"

     

    Thanks. Its resolved.

     

    Regards

    Sandhya

     

     

4 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    I would use Keys here.  Does it cause the same problem?

  • Hi sandhyaramesh,

     

    Please try to replace the SetText() method for the Keys() method and also add + [Tab]  after your Project.variables.variableName.

     

    Ex: Aliases.MyLongControlName.Keys(Project.Variables.Password + [Tab])

     

     

    Let me know if that helps,

     

    Leandro de Araújo Souza

    • sandhyaramesh's avatar
      sandhyaramesh
      New Contributor

      Hi,

       

      Thanks for your suggesstions.

       

      Aliases.MyLongControlName.Keys(Project.Variables.Password + [Tab])

      This gave me syntax error, same thing i split into 2 statements as below and it works as expected.

       

      Aliases.LandmarkII.frmLogon.edtPassword.TcxCustomInnerTextEdit.SetText(Project.Variables.Password)

      Aliases.LandmarkII.frmLogon.edtPassword.TcxCustomInnerTextEdit.Keys "[Tab]"

       

      Thanks. Its resolved.

       

      Regards

      Sandhya

       

       

      • leandroaraujoso's avatar
        leandroaraujoso
        Contributor

        Hi sandhyaramesh,

         

        I missed the double quote around the [Tab] part.

         

        Glad you figured yourself.

         

        The correct way would be:

         

        Aliases.LandmarkII.frmLogon.edtPassword.TcxCustomInnerTextEdit.Keys(Project.Variables.Password + "[Tab]");

         

        Regards,

         

        Leandro de Araújo Souza