Forum Discussion

shy_bt's avatar
shy_bt
Occasional Contributor
5 years ago

Test complete not recognising Angular and ASP.net Core desktop application

Hi Team,

 

Am working on an Desktop application(non web) which is embedding  Angular(Back end Angular and ASP.net Core at back end) objects.Using Test Complete 14  am unable to recognize the objects. The ClrFullClassName is CefSharp.Wpf.ChromiumWebBrowser . This article

https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/angularui.html

suggested Recording the scripts, but after recording the script looks like this

 

var chromiumWebBrowser = Aliases["Engineering_Workplace_Application"]["HwndSource_ContentWindow"]["ContentWindow"]["Browser"];

chromiumWebBrowser["Click"](95, 217);

chromiumWebBrowser["Keys"]("abc");

chromiumWebBrowser["Click"](78, 281);

chromiumWebBrowser["Keys"]("abc");

 

Any settings needs to be changed, please suggest

 

Shylaja

  • Hi Team,

     

    By adding the application to the TestedApps collection with the -InjectCefHook command-line key,  TestCOmplete 14.50. is able to recognise the the elements in the application.

     

    Thanks for the valuable suggestion!!!

     

    regards,

    Shylaja

  • BenoitB's avatar
    BenoitB
    Community Hero

    Do you have web licence or only desktop licence ?

    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      shy_bt Please answer directly inside the community site for your answers to make it to the forums, thank you ğŸ™‚

      For this time, let me copy the answer you sent straight to email:

       

      >>

      I have desktop license.

      <<

    • shy_bt's avatar
      shy_bt
      Occasional Contributor

      Hi BenoitB,

       

      Right now I have only Desktop licence. Can we automate this application with existing licence. Please advise.

       

       

      regards,

      Shylaja

      • shy_bt's avatar
        shy_bt
        Occasional Contributor

        Hi BenoitB,

         

        Sorry by mistake I clicked accept as a solution, even with Desktop + Web licence, am unable to recognise objects inside Angular application.Please advise.

         

        regards,

        Shylaja