I’m working on a console application using .NET Core 8 and I need to use the AutomationElement object from the UIAutomation library to automate UI tasks.
I’ve used AutomationElement in .NET Framework applications before, but I’m facing issues using it in a .NET Core 8 console application. I’m not sure which packages to install or how to reference the necessary assemblies.
Environment Details:
.NET Core 8
Windows 10
Visual Studio 2022
I tried installing various UIAutomation-related NuGet packages, but none seem to provide the AutomationElement class for .NET Core 8. I’ve also looked for any documentation or examples specific to .NET Core but haven’t found anything helpful.
Omar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.