I have a web application that is developed using polymer and wants to realize through testing using JavaScript. This is why I am trying to programmatically set some value, but I cannot access the local DOM of the element: either
document.getElementById('nativeInput');
document.querySelector('#nativeInput');
Someone told me that it is not possible to directly obtain shadow root elements and set a value for them . So my main question is: how can I access the shadow DOM element and set the value for my children ?. Please let me know if this is possible, and if so, please share some solution.
Take a screenshot to get a clearer picture of what I'm trying to accomplish in the HTML element with my JavaScript selector, in # shadow-root (open) .

source
share