Hi,@_cnehle. Welcome to Microsoft Q&A. The exception you're encountering is related to the FlaUI library. This exception occurs when the library attempts to access performance counter data from the Windows registry but encounters an invalid index.
Here are some steps you could try to resolve or diagnose the issue:
Check Registry Permissions: Ensure that the account running the tests has the necessary permissions to read from the registry. You may need to adjust registry permissions to allow access.
Update FlaUI Library: Make sure you are using the latest version of the FlaUI library. Updates to the library may include fixes for known issues, including issues related to performance counters.
Disable Performance Counters: If performance counters are not essential for your testing, you can try disabling them. This can be done by setting the UsePerformanceCounters property of the AutomationBase class to false before initializing FlaUI.
Check System Environment: Ensure that your system environment is set up correctly. Sometimes, issues with environment variables or system configurations can lead to unexpected behavior.
If none of the above solutions work, you may need to consult the documentation or seek assistance from the maintainers of the third-party library FlaUI for further troubleshooting and support.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.