Using $$ to find elements by CSS selectors
Create an element with attributes, then use $$ to find them.
<div id='sample'> <span name='test1'>Test1</span> <span name='test2'>Test2</span> </div>