Forum Discussion

apurvak's avatar
apurvak
Occasional Contributor
5 years ago

Testcomplete is unable to recognize objects for hwndsource

Hi,

 

I am converting VB scripts to JavaScripts. While converting the scripts I am facing issue with recognizing objects with hwndsource popup menu. Below is the code:

 

Sys.Process("TestStandDesigner").WPFObject("HwndSource: PopupRoot", "").WPFObject("PopupRoot", "", 1).WPFObject("Decorator", "", 1).WPFObject("NonLogicalAdornerDecorator", "", 1).WPFObject("ContextMenu", "", 1)

 

The application designed with special framework. if the application is developed as normal VS WPF application

then the objects are reconized correctly.

On ClickR() action the context menu is generated but its cannot be mapped with normal PopupMenu method or toolwindow.  While recording script testcomplete giving one popupRoot but it cannot be mapped again.

Error Message: No traces of popupRoot in Object browser

following the code when I recorded the script

  let xamDataTreeNodeControl = Aliases.TestStandDesigner.HwndSource_ShellView.ShellView.DockTGP.XamTabControl.GrdTreeView.AutomatTree.XamDataTreeNodeControl7;
  xamDataTreeNodeControl.ClickR(183, 11);
  xamDataTreeNodeControl.StackPanel.PopupMenu.Click("Edit Automat");

but Its not usable for next time.

I am also attaching the screenshot please check.

I there any way of mapping the popup menu ?

Can anyone please let me know what is the solution for above problem?

3 Replies