123456789_123456789_123456789_123456789_123456789_

Class: Capybara::Queries::ActiveElementQuery Private

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, BaseQuery
Instance Chain:
self, BaseQuery
Inherits: Capybara::Queries::BaseQuery
Defined in: lib/capybara/queries/active_element_query.rb

Constant Summary

BaseQuery - Inherited

COUNT_KEYS

Class Method Summary

BaseQuery - Inherited

Instance Attribute Summary

BaseQuery - Inherited

#expects_none?

Checks if a count of 0 is valid for the query Returns false if query does not have any count options specified.

#options, #session_options, #session_options=, #count_specified?

Instance Method Summary

BaseQuery - Inherited

#failure_message

Generates a failure message from the query description and count options.

#matches_count?

Checks if the given count matches the query count options.

#negative_failure_message, #wait, #assert_valid_keys, #count_message, #occurrences

Constructor Details

.new(**options) ⇒ ActiveElementQuery

[ GitHub ]

  
# File 'lib/capybara/queries/active_element_query.rb', line 7

def initialize(**options)
  @options = options
  super(@options)
end

Instance Method Details

#resolve_for(session)

[ GitHub ]

  
# File 'lib/capybara/queries/active_element_query.rb', line 12

def resolve_for(session)
  node = session.driver.active_element
  [Capybara::Node::Element.new(session, node, nil, self)]
end