I was trying to encrypt multiple excel files, by looping through them, and pressing the UI elements that I captured, however this worked only for the first file (from which the UI elements where captured).
Does this mean that UI elements work only with the same application instance they were captured from?
I'm getting the following error: " Failed to press button, failed to get window"
Each time you open a new file, it creates a new window instance / handle. Your captured UI element still points to the old window which is why PAD can’t find it anymore.
To fix this, you must attach to the correct Excel instance each loop.
If this solved your issue, please mark it as ✅Accepted Answer. If it helped, feel free to give it a 🩷Like!
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.