- In general, use a GUI testing framework / application.
- If it's a web app, Selenium is the sort of de-facto standard, at least for big orgs. A comparison can be found here [0] (biased towards their own tool but still good as an overview).
- If it's a desktop app (like the one OP has in his profile), there's a plethora of others tools. I'm familiar with Ranorex, which is pretty good, especially if you're invested in Windows / Microsoft technologies, but requires some basic knowledge of C#.
Also I'm familiar with the much older HP Winrunner, which is ok I guess but shows its age.
There are many others. A list can be found at Wikipedia [1] but it includes many tools that I wouldn't consider to be pure testing tools.
Incidentally just today I learned about Sikulix by skimming HN posts which I missed this week [2]. It's not a testing tool but can be used as one.
[0] https://www.parasoft.com/blog/automated-web-ui-testing-best-...
[1] https://en.wikipedia.org/wiki/Comparison_of_GUI_testing_tool...