Posted: 23 Mar 2020 13:34 EDT Last activity: 24 Mar 2020 15:46 EDT
Set default focus on layout group tab on harness load
Currently, when clicking Document in the Navigation Panel, the focus indicator falls on the search field. We want the focus to go to the Recent Documents tab in the harness that loads, upon click of Document menu item, to follow a more logical keyboard tab sequence.
Is there an OOTB that would allow us to set focus on this tab when the harness loads?
This worked. For those who may have the same issue, I had to create a Test ID in the section rule for the Recent Documents tab > verify the data test id in DevTools and used the JS code in the link Rakshith shared with me.