code: def enter_text(self, locator, text, with_click=True, with_clear=False, with_enter=False, params=None):
          
          element = locator
          if not isinstance(element, WebElement):
              element = self.get_visible_element(locator, params)
  
          if with_click:
              self.click(element)
  
          actions = ActionChains(self.driver)
          if 'explorer' in self.driver.name and "@" in str(text):
              actions = BasePage.handle_at_sign_for_ie(text, actions)
          else:
              actions.send_keys_to_element(element, text)
  
          if with_clear:
              element.clear()
              # Click to regain focus as clear does clear w/ blur by design -
              # https://w3c.github.io/webdriver/webdriver-spec.html#element-clear
              self.click(element)
  
          if with_enter:
              actions.send_keys(Keys.ENTER)
  
          actions.perform()
docs: Enter text into a web element.
  
          :param locator: locator tuple or WebElement instance
          :param text: text to input
          :param with_click: clicks the input field
          :param with_clear: clears the input field
          :param with_enter: hits enter-key after text input
          :param params: (optional) locator params
          :return: None