Recommendation on dealing with PopupMenu in tests

Hi, are there good/recommended practices, on how to deal with blocking of popup menu that are being called, when writing automated tests vs wxPython based UI?

When dealing with modal dialogs, I was able to get around the similar problems due to using dialog.Show() instead of dialog.ShowModal().

Is there some kind of similar functionality for dealing with popup Menus?

Many thanks in advance

Serhiy Yevtushenko