def enter_text_into_field_with_name(name, text)
        the_element = find_element(:name, name)
        if the_element.tag_name == "input" || the_element.tag_name == "textarea" then
          the_element.clear
          the_element.send_keys(text)
        else
          elements = find_elements(:name, name)
          if elements.size == 1 then
            elements[0].send_keys(text)
          else
            element_set = elements.select {|x| x.tag_name == "textarea" || (x.tag_name == "input" &&  x.attribute("text")) }
            element_set[0].send_keys(text)
          end
        end
        return true
      end
def enter_text_into_field_with_name(name, text)
        the_element = find_element(:name, name)
        if the_element.tag_name == "input" || the_element.tag_name == "textarea" then
          the_element.clear
          the_element.send_keys(text)
        else
          elements = find_elements(:name, name)
          if elements.size == 1 then
            elements[0].send_keys(text)
          else
            element_set = elements.select {|x| x.tag_name == "textarea" || (x.tag_name == "input" &&  x.attribute("text")) }
            element_set[0].send_keys(text)
          end
        end
        return true
      end
text fields