def jquery_update_text_value(self, selector, new_value, by=By.CSS_SELECTOR,<EOL>timeout=settings.LARGE_TIMEOUT):
if self.timeout_multiplier and timeout == settings.LARGE_TIMEOUT:<EOL><INDENT>timeout = self.__get_new_timeout(timeout)<EOL><DEDENT>if page_utils.is_xpath_selector(selector):<EOL><INDENT>by = By.XPATH<EOL><DEDENT>element = self.wait_for_element_visible(<EOL>selector, by=by, timeout=timeout)<EOL>self.__demo_mode_highlight_if_active(selector, by)<EOL>self.scroll_to(selector, by=by)<EOL>selector = self.convert_to_css_selector(selector, by=by)<EOL>selector = self.__make_css_match_first_element_only(selector)<EOL>selector = self.__escape_quotes_if_needed(selector)<EOL>new_value = re.escape(new_value)<EOL>new_value = self.__escape_quotes_if_needed(new_value)<EOL>update_text_script = """<STR_LIT>""" % (<EOL>selector, new_value)<EOL>self.safe_execute_script(update_text_script)<EOL>if new_value.endswith('<STR_LIT:\n>'):<EOL><INDENT>element.send_keys('<STR_LIT:\n>')<EOL><DEDENT>self.__demo_mode_pause_if_active()<EOL>
This method uses jQuery to update a text field.
            If the new_value string ends with the newline character,
            WebDriver will finish the call, which simulates pressing
            {Enter/Return} after the text is entered.