shadow$$
Access elements inside a given element's shadowRoot
Usage
$(selector).shadow$$(selector)
Parameters
Name | Type | Details |
---|---|---|
selector | String , Function | selector or JS Function to fetch a certain element |
Example
it('should return elements inside a shadowRoot', () => {
const innerEl = $('.input').shadow$$('#innerEl');
console.log(innerEl.getValue()); // outputs: 'test123'
});