Is there anyway to write a custom filter which returns the parent nodes of the selector? ie) div.someClass:parentNode or ancestor: div.someClass would return the parent element of div.someClass.
I know you can use .parent() in jQuery, but am using Selenium RC and am limited to using selector functionality in the code. Thanks