Urgent Question Please

sanaaabdullah21 at gmail.com sanaaabdullah21 at gmail.com
Sat Mar 26 06:54:43 EDT 2016


Hi Python developers, I am trying to click on the testInstance button using pywinauto but I couldn't do it, even it returns empty list when I try to print the controllers . Here is what I tried:
app = application.Application()
app=app.Connect(path = r"C:\\hdmt\\tos_2.5.2.0_release\\tosrelease\\bin\\release\\HdstSiteGuiWPF.exe")

#app.PrintControlIdentifiers()
#app['Site Controller GUI Command Center - Version 2.5.2.0 OfflineLSM'].MenuSelect('Tools->TestInstance')

#app.top_window_().PrintControlIdentifiers()
#app.HdstSiteGuiWPF.MenuSelect("Tools->TestInstance")
#app.HdstSiteGuiWPF.PrintControlIdentifiers()
app['Site Controller GUI Command Center - Version: 2.5.2.0 OfflineLSM'].ToolsCenter.TestInstance.Click()
#app.MenuSelect("Tools")



More information about the Python-list mailing list