This is a bit strange. Imo. Since selectors have separate css/xpath methods, can't we just store which one was called and use that?