document.querySelector('#containerrr').shadowRoot.querySelector('h1').getBoundingClientRect()
you can use querySelectorAll to get all the iframes: const iframes = document.querySelectorAll('iframe'); It will return you an array. Then you can choose which one you need: iframes[0]
document.querySelectorAll('iframe')[1].contentWindow.document.querySelector("#shadowwcontainer").shadowRoot.querySelector('h1').getBoundingClientRect()
document.querySelectorAll('iframe')[1].contentWindow.document.querySelector("#shadowwcontainer").shadowRoot.querySelector("#Butonnn22inside")
Simply run monitorEvents(object [, events]) in your console, e.g. monitorEvents(document.body, "dragenter") or for all events monitorEvents(document.body). To stop it run unmonitorEvents(document.body).
more examples here: http://csreis.github.io/tests/