Urgent Question Please

24 views
Skip to first unread message

Sanaa Abdullah

unread,
Mar 26, 2016, 7:06:00 AM3/26/16
to Python Programming for Autodesk Maya

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")

12670353_577349862416739_7380451619346415021_n.jpg
Reply all
Reply to author
Forward
0 new messages