def assert_element(self, selector, 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_element_visible(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>" % (by, selector)<EOL>self.__highlight_with_assert_success(messenger_post, selector, by)<EOL><DEDENT>return True<EOL>
Similar to wait_for_element_visible(), but returns nothing.
            As above, will raise an exception if nothing can be found.
            Returns True if successful. Default timeout = SMALL_TIMEOUT.