You can use UIDeskAutomation.Automation3.0 to create automated tasks for Windows applications (both desktop and browser) based on their user interface. This library uses Microsoft Windows Automation API 3.0 (the unmanaged version of UI Automation API which is located in Windows\System32\UIAutomationCore.dll, was introduced starting with Windows 7 and was written as a Component Object Model - COM library).
$ dotnet add package UIDeskAutomation.Automation3.0No README available.