Search code examples
pywinauto

Menu Items not found in Menustrip pywinauto


from pywinauto.application import Application
import pywinauto



app = Application(backend="win32").connect(title_re="Trader*").top_window()
app.MenuStrip1.print_control_identifiers()

here is print control output of menustrip

WindowsForms10.Window.8.app.0.33c0d9d - 'MenuStrip1'    (L-1280, T-10, R0, B14)
['WindowsForms10.Window.8.app.0.33c0d9d', 'MenuStrip1WindowsForms10.Window.8.app.0.33c0d9d', 'MenuStrip1']
child_window(title="MenuStrip1", auto_id="mainMenu", control_type="System.Windows.Forms.MenuStrip")

Image of Menustrip in application

Not able to select Menu Items Live file

In Swappy also menustrip has no childrens. Here is swappy image of app connected Image of Swappy of Connected app.

How to select menus like 'file->log in' in such situation.


Solution

  • Changed backend win32 to uia it worked.