Sha256: ecdb60ea074295a6d2f891f64d1bf1fdfddccebe39b679806b01355b0a5ec7d9

Contents?: true

Size: 861 Bytes

Versions: 62

Compression:

Stored size: 861 Bytes

Contents

# frozen_string_literal: true

require 'capybara/selenium/nodes/ie_node'

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.native) }
  end

private

  def build_node(native_node, initial_cache = {})
    ::Capybara::Selenium::IENode.new(self, native_node, initial_cache)
  end
end

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

Version data entries

62 entries across 49 versions & 5 rubygems

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