I'm not sure exactly how to do this in a manner that would be portable for many possible implementations. There is ByTextContent and ByPartialTextContent already, but what about case sensitivity? Regular expression matches?