Question About Windows Atomation

on windows 11 how to solve the problem of Windowa Automation

You can use Windows Spy to locate the required UI element and generate the step automatically.
Once the step is generated using Windows Spy, you can perform Windows Automation actions reliably on that element.