Sha256: 97c081d97a252f7d3f18c4c711efb806cf3e74feb48ce7f0ec9077acae5d2f53
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
# frozen_string_literal: true require 'spec_helper' require 'selenium-webdriver' require 'shared_selenium_session' require 'rspec/shared_spec_matchers' Capybara.register_driver :selenium_ie do |app| # ::Selenium::WebDriver.logger.level = "debug" Capybara::Selenium::Driver.new( app, browser: :ie, desired_capabilities: ::Selenium::WebDriver::Remote::Capabilities.ie('requireWindowFocus': true) ) end module TestSessions SeleniumIE = Capybara::Session.new(:selenium_ie, TestApp) end skipped_tests = %i[response_headers status_code trigger modals hover form_attribute windows] $stdout.puts `#{Selenium::WebDriver::IE.driver_path} --version` if ENV['CI'] Capybara::SpecHelper.run_specs TestSessions::SeleniumIE, 'selenium', capybara_skip: skipped_tests do |example| case example.metadata[:description] when /#refresh it reposts$/ skip 'Firefox and Edge insist on prompting without providing a way to suppress' end end RSpec.describe 'Capybara::Session with Internet Explorer', capybara_skip: skipped_tests do include Capybara::SpecHelper include_examples 'Capybara::Session', TestSessions::SeleniumIE, :selenium_ie include_examples Capybara::RSpecMatchers, TestSessions::SeleniumIE, :selenium_ie end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capybara-3.4.2 | spec/selenium_spec_ie.rb |
capybara-3.4.1 | spec/selenium_spec_ie.rb |
capybara-3.4.0 | spec/selenium_spec_ie.rb |