Added function to see if a text element exists within a page to the base
class