How to set text on input on Shadow Root?

Hello, I want to do a test to assign a value to an input that is in the Shadow DOM, but it can’t be done, is there a solution? Thank you