After the migration of a winforms application from .net4.8 to .net6 we have many FlaUI tests failing. After analysis, we found out that the TabItems are not identified correctly in .net6. We could also reproduce this behavior with .net8

We were able to reproduce the issue with FlaUInspect with a minimal application (attached).
WinForms.zip