Forum Discussion

rpsbpyz's avatar
rpsbpyz
Occasional Contributor
4 years ago

Windows Security prompt in Chrome will not accept password with ! in it

When running tests in TestComplete for Chrome, my URL prompts me for my UAT domain\username and password, but my password has an ! in it. (i.e. TeSt!ng1) Chrome will not accept it, but IE and Edge does.

 

My only solution was to put put the exclamation point twice (i.e. TeSt!!ng1). Is there any documentation for TestComplete v14.73 to get around this?

  • Hi,

     

    If you use .Keys() method to enter the password, then this is expected and documented behavior - '!' is a special character that simulates press of the Shift button. And it must be doubled to be entered as exclamation sign.

    For .SetText() method doubling is not required, but not all controls can be controlled using .SetText() method.

    If password is entered successfully for Edge and IE using .Keys() method without duplication of !, ~ and ^ characters (not sure about Project Variable of Password type), then this sounds like an issue that should be reported to Support via the https://support.smartbear.com/testcomplete/message/ form.

     

  • If you record a test and type it in yourself, will that play back successfully?

    • rpsbpyz's avatar
      rpsbpyz
      Occasional Contributor

      Yes. It played back successfully, but it put !! when I only entered a single ! in the password. Why does only Chrome do this with ! but IE and Edge do not?

    • rpsbpyz's avatar
      rpsbpyz
      Occasional Contributor

      To note, I did record a test and even IE changed a single ! to !!; however, with IE and Edge, when I use Project variables, I only have a single ! and it passes fine with IE and Edge, only Chrome won't take it unless I put !! in the password.

       

      I think I resolved this by creating a DB Table using a .csv file with 3 headers, 1 in which is for the Chrome password. I created instructions for other users of our system that may have a ! in their password. This way, when using my variable they just have to point to the correct value of the DB Table.

      • Marsha_R's avatar
        Marsha_R
        Moderator

        Are you just using a string or have you tried using a Password variable?