def bring_to_front(self, selector, by=By.CSS_SELECTOR):
if page_utils.is_xpath_selector(selector):<EOL><INDENT>by = By.XPATH<EOL><DEDENT>self.find_element(selector, by=by, timeout=settings.SMALL_TIMEOUT)<EOL>try:<EOL><INDENT>selector = self.convert_to_css_selector(selector, by=by)<EOL><DEDENT>except Exception:<EOL><INDENT>return<EOL><DEDENT>selector = re.escape(selector)<EOL>selector = self.__escape_quotes_if_needed(selector)<EOL>script = ("""<STR_LIT>"""<EOL>% selector)<EOL>self.execute_script(script)<EOL>
Updates the Z-index of a page element to bring it into view.
            Useful when getting a WebDriverException, such as the one below:
                { Element is not clickable at point (#, #).
                  Other element would receive the click: ... }