def assert_text_present(self, text, msg=None):
        """
        Hard assert for whether the text if visible in the current window/frame

        :params text: the string to search for
        :params msg: (Optional) msg explaining the difference
        """
        e = driver.find_element_by_tag_name('body')
        assert text in e.text
def assert_text_present ( self , text , msg = None ) : e = driver . find_element_by_tag_name ( 'body' ) assert text in e . text
Hard assert for whether the text if visible in the current window/frame

        :params text: the string to search for
        :params msg: (Optional) msg explaining the difference