shadow$
Access an element 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 an element inside a shadowRoot', () => {
const innerEl = $('.input').shadow$('#innerEl');
console.log(innerEl.getValue()); // outputs: 'test123'
});