I am trying to detect an element on a Service Now page, that seems to be”hidden” under quite a number of shadowroots. The further below code stops at the first level, and if I put a console.write in to see what $s.shadowroot is, it gives me:
Here is the DOM:
Has Google AI informed me the wrong way to get the shadowroot and then get the next element that holds the shadowroot, to continue down the DOM?