I defined a component with polymer like this:
CONTENT
I think this works for me...
$('polymer-element::shadow #test')
Only tested it on chrome though