Question

1
Replies
72
Views
Close popover
Regina Siochi (ReginaS9)
Sky Solutions LLC
Regina Siochi
Sky Solutions LLC
US
ReginaS9 Member since 2019 24 posts
Sky Solutions LLC
Posted: March 24, 2020
Last activity: March 25, 2020
Closed

Set focus on repeating dynamic layout on harness load

Hello, 

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?

setTimeout(function(){    console.log("setTimeout Worked");   document.querySelectorAll('[data-test-id="201805090929170779614-1"]')[0].focus(); 

  }, 1000);   console.log("it set focus on dynamic layout");

 

set focus on repeating dynamic layout

 

Enterprise Application Development Dev/Designer Studio System Architect
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.