Run method:
def create_project(self):
Logic.start_app()
time.sleep(5)
Name.filebut.click_input()
time.sleep(5)
Logic.stop_app()
He takes the method:
def start_app(self, app_path):
app.start(app_path, timeout=10)
time.sleep(3)
app.connect(best_match=”text”, timeout=10)
As a result, the program starts and the response Process finished with exit code 0 immediately appears.
There’s no way I can fix this. I am using the pywinauto library.
I expect that the program will start, the necessary button will be pressed and the program will close.
MishaKhm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.