def parent
      assert_exists

      obj = @object.parentNode
      until element_class = Celerity::Util.htmlunit2celerity(obj.class)
        return nil if obj.nil?
        obj = obj.parentNode
      end

      element_class.new(@container, :object, obj)
    end
def parent
      assert_exists

      obj = @object.parentNode
      until element_class = Celerity::Util.htmlunit2celerity(obj.class)
        return nil if obj.nil?
        obj = obj.parentNode
      end

      element_class.new(@container, :object, obj)
    end
@api private

 Get the parent element
 @return [Celerity::Element, nil] subclass of Celerity::Element, or nil if no parent was found