code: def set_input_by_xpath(self, xpath, value):
          
  
          elem = self.select(xpath).node()
  
          if self._lxml_form is None:
              # Explicitly set the default form
              # which contains found element
              parent = elem
              while True:
                  parent = parent.getparent() # pylint: disable=no-member
                  if parent.tag == 'form':
                      self._lxml_form = parent
                      break
  
          # pylint: disable=no-member
          return self.set_input(elem.get('name'), value)
docs: Set the value of form element by xpath
  
          :param xpath: xpath path
          :param value: value which should be set to element