code: def jquery_update_text_value(self, selector, new_value, by=By.CSS_SELECTOR,
                                   timeout=settings.LARGE_TIMEOUT):
          
          if self.timeout_multiplier and timeout == settings.LARGE_TIMEOUT:
              timeout = self.__get_new_timeout(timeout)
          if page_utils.is_xpath_selector(selector):
              by = By.XPATH
          element = self.wait_for_element_visible(
              selector, by=by, timeout=timeout)
          self.__demo_mode_highlight_if_active(selector, by)
          self.scroll_to(selector, by=by)
          selector = self.convert_to_css_selector(selector, by=by)
          selector = self.__make_css_match_first_element_only(selector)
          selector = self.__escape_quotes_if_needed(selector)
          new_value = re.escape(new_value)
          new_value = self.__escape_quotes_if_needed(new_value)
          update_text_script = """jQuery('%s').val('%s')""" % (
              selector, new_value)
          self.safe_execute_script(update_text_script)
          if new_value.endswith('\n'):
              element.send_keys('\n')
          self.__demo_mode_pause_if_active()
docs: 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.