Forum Discussion

haridi's avatar
haridi
Occasional Contributor
9 years ago

Angular JS and Test Complet

Our Development team recently started developing web application with with Angular JS.  My javascript scripts are failing the script is a simple login script there are no errors generated but it seems TC complete is not rendering the username and password correctly and the login fails. Needless to mention that when the values entered manually the test passes. 

4 Replies

  • Lage's avatar
    Lage
    Contributor

    Hi, 

     

    As you said, the "On-screen Action" - "SetText", won´t execute the javascript to enable the login button. 

     

    To solve this issue, we need to simulate keys as user manually does. With TestComplete we can do that using the

    "On-screen Action" - "Keys", instead of "SetText". That will enable the button of the forms but remember use Keys in all of the mandatory fields.

     

    https://support.smartbear.com/viewarticle/68579/

     

    Hope it helps.

    Lage

  • Lage's avatar
    Lage
    Contributor

    Hi, Can you try just with the Operation Keys?

     

    I'm working also with angular and I have no problems.

     

    Regards,

    Lage

    • haridi's avatar
      haridi
      Occasional Contributor

      Can you please explain what you mean by using Operation Keys?