Get html elements inside shadow root using javascript

I have example HTML code: And with this code I can access to shadow root element parent container: But can’t get elements inside shadow root container using this command: Answer You have to navigate to shadow-root first then you can get it: