pywinauto automation worked relatively fast, but now is very slow with no changes to my script
I’m making a pywinauto program to automate tasks in a benchmarking program. It will not work with the ‘win32’ backend because it has some special control-types, thus I have stuck with ‘uia’. For the past few weeks, the program has worked somewhat fine with few pywinauto bugs. However, I have noticed that over time, starting the program over and over (due to debugging and the occasional error), it will suddenly slow down for about 1-2 minutes per operation until I restart my computer.
pywinauto: how to get rid of delays in clicks
import time from pywinauto.application import Application import os #Installer path pycharm_exe = r”G:SoftwarewaJetBrains PyCharmJetBrains PyCharm Professional 2023.1 [FileCR]JetBrains PyCharm Professional 2023.1pycharm-professional-2023.1.exe” app = Application(backend=”uia”).start(pycharm_exe) # Wait for window to appear while True: if app.PyCharmSetup.exists() == True: break #activate the window app.PyCharmSetup.window() # app.PyCharmSetup.print_control_identifiers() app.PyCharmSetup.Next.click() #click on next again app.PyCharmSetup.Next.click() #click on next once again #app.PyCharmSetup.print_control_identifiers() […]
How to get control identifiers for just the context menu items or dropdown items and not the entire window?
So I am trying to automate a task in an app using pywinauto and i want to know the control identifiers of only elements inside lets say context menu or elements inside dropdown menu for ex: