I am trying to set focus on a repeating dynamic layout upon click of the Teams menu item in the navigation panel. I see the console log alerts in DevTools but the focus is not attaching to the element. I tried using the script below. The data-test-id below is the test ID for the first dynamic layout.
Is it possible to set focus on a repeating dynamic layout?