def wait_for_element_visible(self, selector, by=By.CSS_SELECTOR,<EOL>timeout=settings.LARGE_TIMEOUT):
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>return page_actions.wait_for_element_visible(<EOL>self.driver, selector, by, timeout)<EOL>
Waits for an element to appear in the HTML of a page.
            The element must be visible (it cannot be hidden).