def wait_for_no_views(*queries,
                          timeout: Calabash::Wait.default_options[:timeout],
                          timeout_message: nil,
                          retry_frequency: Calabash::Wait.default_options[:retry_frequency])
      if queries.nil? || queries.any?(&:nil?)
        raise ArgumentError, 'Query cannot be nil'
      end

      timeout_message ||= lambda do |wait_options|
        "Waited #{wait_options[:timeout]} seconds for #{Wait.parse_query_list(queries)} to each not match any view"
      end

      wait_for(timeout_message,
               timeout: timeout,
               retry_frequency: retry_frequency,
               exception_class: ViewFoundError) do
        !views_exist?(*queries)
      end
    end
def wait_for_no_views(*queries,
                          timeout: Calabash::Wait.default_options[:timeout],
                          timeout_message: nil,
                          retry_frequency: Calabash::Wait.default_options[:retry_frequency])
      if queries.nil? || queries.any?(&:nil?)
        raise ArgumentError, 'Query cannot be nil'
      end

      timeout_message ||= lambda do |wait_options|
        "Waited #{wait_options[:timeout]} seconds for #{Wait.parse_query_list(queries)} to each not match any view"
      end

      wait_for(timeout_message,
               timeout: timeout,
               retry_frequency: retry_frequency,
               exception_class: ViewFoundError) do
        !views_exist?(*queries)
      end
    end
Waits for all `queries` to simultaneously match no views

 @example
  cal.wait_for_no_views({id: 'foo'}, {id: 'bar'})

 @see Calabash::Wait#wait_for for optional parameters

 @param [String, Hash, Calabash::Query] queries List of queries or a
  query.
 @raise [ViewNotFoundError] If `queries` do not all match at least one
  view.