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")
Your question does not seem to relate to IEP, and I am not familiar with pywinauto. You probably want to ask there.
- Almar
From: sanaaab...@gmail.com
Sent: 26 March 2016 12:02
To: Interactive Editor for Python
Subject: [IEP] Urgent Question Please
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")
--
You received this message because you are subscribed to the Google Groups "Interactive Editor for Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iep_+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.