teamcapybara/capybara · error · Capybara::NotSupportedByDriverError

Capybara::Driver::Base#switch_to_frame

Error message

Capybara::Driver::Base#switch_to_frame

What it means

Error "Capybara::Driver::Base#switch_to_frame" thrown in teamcapybara/capybara.

Source

Thrown at lib/capybara/driver/base.rb:75

  def status_code
    raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#status_code'
  end

  def send_keys(*)
    raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#send_keys'
  end

  def active_element
    raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#active_element'
  end

  ##
  #
  # @param frame [Capybara::Node::Element, :parent, :top]  The iframe element to switch to
  #
  def switch_to_frame(frame)
    raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#switch_to_frame'
  end

  def frame_title
    find_xpath('/html/head/title').map(&:all_text).first.to_s
  end

  def frame_url
    evaluate_script('document.location.href')
  rescue Capybara::NotSupportedByDriverError
    raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#frame_title'
  end

  def current_window_handle
    raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#current_window_handle'
  end

  def window_size(handle)
    raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#window_size'

View on GitHub (pinned to 15b5fdb76e)

When it happens

Trigger: Thrown at lib/capybara/driver/base.rb:75 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of teamcapybara/capybara@15b5fdb76e (2026-08-21). Data as JSON: /api/errors/e429e557f6f4cc78. Report an issue: GitHub.