From d47fbdb60ed7d7dcc4956e7902374e977e60ef73 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Oct 2021 03:00:44 +0000 Subject: [PATCH 1/2] Bump selenium-webdriver from 3.142.7 to 4.0.0 Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 3.142.7 to 4.0.0. - [Release notes](https://github.com/SeleniumHQ/selenium/releases) - [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES) - [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.0.0) --- updated-dependencies: - dependency-name: selenium-webdriver dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 55189ab1..15746c3d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) From 4f9078c6c6a98fa79a4aa10ec32f4d9a82ada055 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 17 Oct 2021 02:36:27 +0200 Subject: [PATCH 2/2] Update usage of Selenium driver --- spec/support/selenium.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/support/selenium.rb b/spec/support/selenium.rb index 2732bf7f..120881c2 100644 --- a/spec/support/selenium.rb +++ b/spec/support/selenium.rb @@ -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