Recently asked how to target elements in chrome settings here: How to edit chromes search and homepage with selenium/python?
I was told I should use \'shadow dom\' e
AFAIK, there is no such limit to access the shadow element. You should be good to access them until you provide the correct shadow tree elements.
Refer to answer here for detailed explanation. It's informative and detailed..
Here is the js that you can pass and return the element
input = driver.execute_script("return document.querySelector('downloads-manager').shadowRoot.querySelector('downloads-toolbar#toolbar').shadowRoot.querySelector('cr-toolbar#toolbar').shadowRoot.querySelector('cr-toolbar-search-field#search').shadowRoot.querySelector('input#searchInput')")
input.send_keys('testing')
Screenshot: