def assert_exact_text(self, text, selector="<STR_LIT:html>", by=By.CSS_SELECTOR,<EOL>timeout=settings.SMALL_TIMEOUT):
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:<EOL><INDENT>timeout = self.__get_new_timeout(timeout)<EOL><DEDENT>self.wait_for_exact_text_visible(<EOL>text, selector, by=by, timeout=timeout)<EOL>if self.demo_mode:<EOL><INDENT>if page_utils.is_xpath_selector(selector):<EOL><INDENT>by = By.XPATH<EOL><DEDENT>if page_utils.is_link_text_selector(selector):<EOL><INDENT>selector = page_utils.get_link_text_from_selector(selector)<EOL>by = By.LINK_TEXT<EOL><DEDENT>messenger_post = ("<STR_LIT>"<EOL>% (text, by, selector))<EOL>self.__highlight_with_assert_success(messenger_post, selector, by)<EOL><DEDENT>return True<EOL>
Similar to assert_text(), but the text must be exact, rather than
            exist as a subset of the full text.
            (Extra whitespace at the beginning or the end doesn't count.)
            Raises an exception if the element or the text is not found.
            Returns True if successful. Default timeout = SMALL_TIMEOUT.