Sha256: 6896f3e1fd7cd49632dadff7cc3a0aafc04b0225b7f0dfc3195ffbb0256db5bd

Contents?: true

Size: 384 Bytes

Versions: 16

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

module Capybara
  # @api private
  module Queries
    class ActiveElementQuery < BaseQuery
      def initialize(**options)
        @options = options
        super(@options)
      end

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

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/capybara-3.40.0/lib/capybara/queries/active_element_query.rb
capybara-3.40.0 lib/capybara/queries/active_element_query.rb
capybara-3.39.2 lib/capybara/queries/active_element_query.rb
capybara-3.39.1 lib/capybara/queries/active_element_query.rb
capybara-3.39.0 lib/capybara/queries/active_element_query.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/queries/active_element_query.rb
capybara-3.38.0 lib/capybara/queries/active_element_query.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/queries/active_element_query.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/queries/active_element_query.rb
capybara-3.37.1 lib/capybara/queries/active_element_query.rb
capybara-3.37.0 lib/capybara/queries/active_element_query.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/queries/active_element_query.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/capybara-3.36.0/lib/capybara/queries/active_element_query.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/queries/active_element_query.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/queries/active_element_query.rb
capybara-3.36.0 lib/capybara/queries/active_element_query.rb