# File lib/xpath/html.rb, line 30
    def field(locator, options={})
      xpath = descendant(:input, :textarea, :select)[~attr(:type).one_of('submit', 'image', 'hidden')]
      xpath = locate_field(xpath, locator)
      xpath = xpath[attr(:checked)] if options[:checked]
      xpath = xpath[~attr(:checked)] if options[:unchecked]
      xpath = xpath[field_value(options[:with])] if options.has_key?(:with)
      xpath
    end