def scroll_to(self, selector, by=By.CSS_SELECTOR,<EOL>timeout=settings.SMALL_TIMEOUT):
if self.demo_mode:<EOL><INDENT>self.slow_scroll_to(selector, by=by, timeout=timeout)<EOL>return<EOL><DEDENT>if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:<EOL><INDENT>timeout = self.__get_new_timeout(timeout)<EOL><DEDENT>element = self.wait_for_element_visible(<EOL>selector, by=by, timeout=timeout)<EOL>try:<EOL><INDENT>self.__scroll_to_element(element)<EOL><DEDENT>except (StaleElementReferenceException, ENI_Exception):<EOL><INDENT>self.wait_for_ready_state_complete()<EOL>time.sleep(<NUM_LIT>)<EOL>element = self.wait_for_element_visible(<EOL>selector, by=by, timeout=timeout)<EOL>self.__scroll_to_element(element)<EOL><DEDENT>
Fast scroll to destination