Resently I’ve found myself working with accessibility, and Google’s (reCAPTCHA)[https://www.google.com/recaptcha/about/]. It’s not a mix that is suppose to go together that’s for sure.
I discovered this little gem to track the element/node that has the focus.
The short of it is: In the console of the developer tools you create a live expression by clicking on the eye and pasting in document.activeElement
.
This will then show you the element that has the focus as you move around the page.