In my current work, I need to automate tests for a 3rd party Windows based logic programming app. 1) I want to start an application, 2) Specify the window to work on, 3) Find all the controls and properties 4) Finally get the output values from the controls Can someone please help? Thanks!
Here is my code:
#import the pywinauto.application module
from pywinauto.application import Application
# create an applicaiton instance and execute the application
app = Application(backend="uia").start('calc.exe')
# creating window specification
dlg_spec = app.window(title='Calculator')
# window lookup to deal with the window/control
dlg_spec.wrapper_object().minimize()
dlg_spec.minimize()
# Printing the control identifiers
app.Properties.print_control_identifiers()
I get TimeoutError and ElementNotFoundError (on Line 4)