How to figure out if an element contains some text of the elements identification course