Forum Discussion

royd's avatar
royd
Regular Contributor
8 years ago

Input field missing setText method!

Hi, I have a very strange problem. In a form, a text field is missing setText method. This is the only field out of many that is missing setText! Using TestComplete 12 with JScript.

 

 

Is there other methods available to enter the text in the field?

 

Thanks in advance.

 

Dave

  • Yes... where you would use "SetText", simply use "Keys".  SetText is a method that is associated with certain components that have a read/write Text or wText property.  If those properties don't exist, TestComplete doesn't include the "SetText" method.  Keys basically simulates sending keystrokes to the control.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Yes... where you would use "SetText", simply use "Keys".  SetText is a method that is associated with certain components that have a read/write Text or wText property.  If those properties don't exist, TestComplete doesn't include the "SetText" method.  Keys basically simulates sending keystrokes to the control.

    • royd's avatar
      royd
      Regular Contributor

      Thank you Robert,

       

      I did not think about that! That the cares of my problem.

       

      Regards,

       

      Dave