Forum Discussion

Mirimmar's avatar
Mirimmar
New Contributor
14 years ago

Debug and popup menu

Hi,

I have a problem with debuging some script in debug mode. When I go step by step through my script and I need to click an item in a popup manu, the popup menu disappear befor the line with the item click command executes. Example:



someobject["ClickR"](1,1); //popup menu shows

someobject["PopupMenu"]["Click"]("something"); //no popup menu



The popup menu disappear when the Test Complite minimizes my application window, to show the next line in script. Is there a way, to go step by step through scripts and popup menu in debug mode?

3 Replies


  • Hi Lukasz,





    You can set a breakpoint to the line that follows the line where an item is selected from the pop-up menu. When the execution point reaches the line where the pop-up menu should be opened, just continue executing the test (click Run or press F5), and both lines that work with the pop-up menu will be executed without stopping.
  • Mirimmar's avatar
    Mirimmar
    New Contributor
    I fought so, but is there a way, to use it only with step by step operation?

    Probably not, so thx for the answer.

  • Hi Lukasz,





    There is no way to do this, as a pop-up window is automatically closed when another window becomes active. TestComplete cannot affect this behavior in any way.