Forum Discussion

krkarthik_info's avatar
krkarthik_info
Frequent Contributor
7 years ago

How to close the Infragistics DockManager ContentPane

Hi All,

 

Can anyone suggest how to close Infragistics DockManager ContentPane directly from the test script? Is there any direct method to close the ContentPane?

 

TestComplete not recognizes the close button(X) in the ContentPane.

 

Thanks in advance.

 

Thanks,

Karthik K R

  • krkarthik_info's avatar
    krkarthik_info
    7 years ago

    Hi,

     

    I have tried to close the ContentPane, by right clicking on the title section, and selecting context menu Close.

     

    On right clicking, it shows context menus as Auto Hide, Floating, Dockable and Close.

     

    With that Close button, I was able to close the content pane.

     

    Thanks,

    Karthik K R

  • If you record a test and click on that close button, what object name comes up for that in the test?

    • krkarthik_info's avatar
      krkarthik_info
      Frequent Contributor

      Hi,

       

      While recording and performing click on that close button in the ContentPane, the following statement appears in the recorded script.

      ContentPaneObject.Click(num, num);

      where num are some random x-axis and y-axis values. This num will keep varying depends on the system screen resolution.

       

      Thanks,

      Karthik K R

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        An alternative: Is there a Keystroke combination (ESC, Ctrl-X, etc) that will close the pane? Rather than trying to use the mouse for it, see if you can simulate the close using a Keys command sent to the pane.  Functionally speaking, there shouldn't be any difference.