def wait?(_condition=nil, _options={}, &_block)

      if _condition.is_a? Hash
        _options = _condition
        _condition = nil
      end

      poll_until(_options) do
        next ensure_block _block if _block

        case _condition
        when :present
          ensure_present
        when :actionable
          ensure_present and ensure_actionable
        when :enabled
          ensure_present and !attribute(:disabled)
        else
          ensure_present and !!attribute(_condition)
        end
      end
    end
def wait?(_condition=nil, _options={}, &_block)

      if _condition.is_a? Hash
        _options = _condition
        _condition = nil
      end

      poll_until(_options) do
        next ensure_block _block if _block

        case _condition
        when :present
          ensure_present
        when :actionable
          ensure_present and ensure_actionable
        when :enabled
          ensure_present and !attribute(:disabled)
        else
          ensure_present and !!attribute(_condition)
        end
      end
    end
waiting