Forum Discussion

SESA70891's avatar
12 years ago

Not able to select Items in POPUP menu using Test Complete

In My Tested Application there is a popup menu (TD.SandBar.PopupMenu) after right click the tree View



After recording Test Complete is recognising  as Mouse C0-ordinates,Not as Items



  Dim popupMenu

  Dim popupMenu2

  Set soMachine = Aliases.SoMachine

  Set internalListView = soMachine.MainForm.DockContainer.Devices.Devices.ztreeTableView.InternalListView

  Call internalListView.ClickItem("Untitled17                                                                          ", 0)

  Call internalListView.ClickItem("ATV32 (ATV32)                                                                          ", 0)

  Call internalListView.ClickItemR("ATV32 (ATV32)                                                                          ", 0)

  Set popupMenu = soMachine.PopupMenu

  Call popupMenu.Click(72, 376)

  Set popupMenu2 = soMachine.PopupMenu1

  Call popupMenu2.Click(59, 13)

  Call popupMenu2.Click(155, 9)

  Call popupMenu.Click(131, 33)

  Call popupMenu2.Click(115, 69)





I check the Object Spy  there is no method called Clickitem or any way to select it

I am attaching screen shots



Please help me on this .This is the main flow for configuring my project.

I  dont want to use low level recording for this


3 Replies

  • sastowe's avatar
    sastowe
    Super Contributor
    There is a help topic somewhere on object recognition. I would seek that out. You need to determine what kind of tree that is, and if possible, let Test Complete know that it is a tree. For instance, it may be as simple as putting the class name in the Object Mapping project property. Or if it is an MSAA object, adding the class name there. Seek the help topic on object recognition, and I think you will find help.
  • We are using SandBar menu .I also have same problem.

    Sandbar objects are not recognizing.please let me know how we can do this.

    I want to select only "File" as shown from toolbar but thats not possible.