Class: Capybara::Queries::BaseQuery Private

Inherits:
Object
  • Object
show all
Defined in:
lib/capybara/queries/base_query.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Direct Known Subclasses

CurrentPathQuery, SelectorQuery, TextQuery, TitleQuery

Constant Summary collapse

COUNT_KEYS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[:count, :minimum, :maximum, :between]

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
# File 'lib/capybara/queries/base_query.rb', line 8

def options
  @options
end

Instance Method Details

#waitObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
15
16
# File 'lib/capybara/queries/base_query.rb', line 10

def wait
  if @options.has_key?(:wait)
    @options[:wait] || 0
  else
    Capybara.default_max_wait_time
  end
end