Forum Discussion

megha_gambhire's avatar
megha_gambhire
Contributor
14 years ago

Unable to click on item present on Context menu.

I have recorded a Keyword test which select button ( Dev x control). It prompts context menu from which i can select one of the option.



But while re playing it failed and Test complete displayed  error ' The Window is invisible and thus can not be activated'. Due which my test failed.



I observed the image recored in Test Visualizer, still it failed while playing the recorded test.



Any one help me ?

14 Replies

  • Megha,


    Thank you for the provided information.

    Actually, TestComplete should recognize menus of the System.Windows.Forms.ContextMenuStrip class by default and record actions over them as menu actions.



    It seems that you are facing some menu recognition problem that could be specific to your project or to your tested application.

    Could you please use this web form to send our Support Team your project and your tested application (or a sample application that demonstrates the problem)? This would help us investigate your problem more thoroughly.



    Thanks in advance.

  • Hi  Julia,



    We have sent the Details of our sample application and detail steps to the forum. Will you all please look at this soon.
  • Hello Sudhir and Megha,


    Thank you for sending us your issues details.

    I have reproduced your context menu recognition issue.

    TestComplete recognizes and records menu actions for controls that have a menu control assigned to them via the ContextMenuStrip property. The button in the Filter panel does not have a context menu assigned (its ContextMenuStrip property returns null). The context menu that appears upon clicking on the button seems to be attached to another control. That is why, TestComplete cannot record and play back actions over the context menu properly.

    You can contact the application developers to find out whether it is possible to assign a context menu to the button in the Filter pane.


    Still, our support engineers are investigating this issue (as well as your other issues). They will probably be able to give you a more deep explanation and provide a solution.


    Thank you.

  • Thanks Julia, for your support. We will discuss this with our Dev team and lets see how it works.

    Once again thanks for coopeartion.