different methods for tag text and visible text matching