Sha256: d526627b3f929fe915848ad718b8d10e698891b08bfbe7128ea25e08b41f1a14

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 Bytes

Contents

# frozen_string_literal: true

module Capybara::Selenium::Driver::InternetExplorerDriver
  def switch_to_frame(frame)
    return super unless frame == :parent

    # iedriverserver has an issue if the current frame is removed from within it
    # so we have to move to the default_content and iterate back through the frames
    handles = @frame_handles[current_window_handle]
    browser.switch_to.default_content
    handles.tap(&:pop).each { |fh| browser.switch_to.frame(fh) }
  end
end

module Capybara::Selenium
  Driver.register_specialization :ie, Driver::InternetExplorerDriver
  Driver.register_specialization :internet_explorer, Driver::InternetExplorerDriver
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capybara-3.18.0 lib/capybara/selenium/driver_specializations/internet_explorer_driver.rb
capybara-3.17.0 lib/capybara/selenium/driver_specializations/internet_explorer_driver.rb