Urgent Question Please

7 views
Skip to first unread message

sanaaab...@gmail.com

unread,
Mar 26, 2016, 7:02:55 AM3/26/16
to Interactive Editor for Python

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

Almar Klein

unread,
Mar 26, 2016, 9:29:44 AM3/26/16
to sanaaab...@gmail.com, Interactive Editor for Python

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.

 

Reply all
Reply to author
Forward
0 new messages