Forum Discussion

RajTC's avatar
RajTC
Occasional Contributor
10 years ago

text fields were not recognizing the text entered by SetText method.

Hi,

 

Developed the automation script (Ex: Add User scenario).

 

By using SetText method I can able to enter data in the text boxes, but while saving the details application thowing error.

 

This issue has been resolved by using Keys method.

 

But script execution speed is slower when compared with the SetText method execution.


Is there a way to make SetText property work on our application?

 

8 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Is the coming up from your application or is it being generated by TestComplete? What's the specific error?

    • RajTC's avatar
      RajTC
      Occasional Contributor

      Hi Robert,

       

      Error coming up on my application.

       

      I am assuming that the text entered in the textfields are not pushed to the database after clicking on the Save button. 

       

      It's working fine with the Keys method.

       

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Couple of questions still:

        What version of TC are you using?
        Are there "OnChange" events that trigger based upon clicking in or clicking out of a field?

        The reason I ask is that it sounds like SetText is not properly triggering those "OnChange" events. This was, IIRC, something that was fixed in a more recent version of TC so I'm curious as to why it's not working for you.