Merge pull request #1063 from openHPI/dependabot/bundler/selenium-webdriver-4.0.0

Bump selenium-webdriver from 3.142.7 to 4.0.0
This commit is contained in:
Sebastian Serth
2021-10-17 02:50:24 +02:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@ -135,7 +135,7 @@ GEM
mini_mime (>= 0.1.3)
ssrf_filter (~> 1.0)
charlock_holmes (0.7.7)
childprocess (3.0.0)
childprocess (4.1.0)
chronic (0.10.2)
coderay (1.1.3)
concurrent-ruby (1.1.9)
@ -443,8 +443,9 @@ GEM
sprockets (> 3.0)
sprockets-rails
tilt
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
selenium-webdriver (4.0.0)
childprocess (>= 0.5, < 5.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2)
semantic_range (3.0.0)
sentry-rails (4.7.3)

View File

@ -13,11 +13,10 @@ end
Capybara.register_driver :selenium do |app|
profile = Selenium::WebDriver::Firefox::Profile.new
profile['intl.accept_languages'] = 'en'
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(elementScrollBehavior: 1)
options = Selenium::WebDriver::Firefox::Options.new
options.headless! if ENV['CI'] == 'true'
options.profile = profile
driver = Capybara::Selenium::Driver.new(app, browser: :firefox, desired_capabilities: capabilities, options: options)
driver = Capybara::Selenium::Driver.new(app, browser: :firefox, capabilities: options)
driver.browser.manage.window.resize_to(1280, 960)
driver
end