Forum Discussion

kaiiii's avatar
kaiiii
Regular Contributor
7 years ago

InComplete Keyboard input

 page.NativeWebObject.Find("id", "step2_settleFunction", "select").Keys(Project.Variables.Buy_Currency_Inputs("Payment_Method"))
this code gives me "incomplete Keyboard input" warning in th Test Log. what is the reason behind it and how can i fix it ?

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Can you provide an example of the input that results in the warning?

    Usually, this happens when the input string contains special characters ( ~^![ ) that are interpreted by TestComplete as Alt, Ctrl and Shift keys. If this is the case, such characters must be doubled before passing them to the .Keys() method.

    • kaiiii's avatar
      kaiiii
      Regular Contributor

      Sure

      "Betala via bank överföring" that is the input in that "Payment-Method".


      same problem i faced in this code also
       page.NativeWebObject.Find("id","language","select").Keys(text)
      here, text = Español (España)

      for multiple languages only, i found this warning but when it's English, it didn't come. i think special characters affect it, but how to solve this for multiple languages.

       

    • kaiiii's avatar
      kaiiii
      Regular Contributor

      Sure

      "Betala via bank överföring" that is the input in that "Payment-Method".


      same problem i faced in this code also
       page.NativeWebObject.Find("id","language","select").Keys(text)
      here, text = "Español (España)"

      for multiple languages only, i found this warning but when it's English, it didn't come. i think special characters affect it, but how to solve this for multiple languages.