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:
@ -135,7 +135,7 @@ GEM
|
|||||||
mini_mime (>= 0.1.3)
|
mini_mime (>= 0.1.3)
|
||||||
ssrf_filter (~> 1.0)
|
ssrf_filter (~> 1.0)
|
||||||
charlock_holmes (0.7.7)
|
charlock_holmes (0.7.7)
|
||||||
childprocess (3.0.0)
|
childprocess (4.1.0)
|
||||||
chronic (0.10.2)
|
chronic (0.10.2)
|
||||||
coderay (1.1.3)
|
coderay (1.1.3)
|
||||||
concurrent-ruby (1.1.9)
|
concurrent-ruby (1.1.9)
|
||||||
@ -443,8 +443,9 @@ GEM
|
|||||||
sprockets (> 3.0)
|
sprockets (> 3.0)
|
||||||
sprockets-rails
|
sprockets-rails
|
||||||
tilt
|
tilt
|
||||||
selenium-webdriver (3.142.7)
|
selenium-webdriver (4.0.0)
|
||||||
childprocess (>= 0.5, < 4.0)
|
childprocess (>= 0.5, < 5.0)
|
||||||
|
rexml (~> 3.2, >= 3.2.5)
|
||||||
rubyzip (>= 1.2.2)
|
rubyzip (>= 1.2.2)
|
||||||
semantic_range (3.0.0)
|
semantic_range (3.0.0)
|
||||||
sentry-rails (4.7.3)
|
sentry-rails (4.7.3)
|
||||||
|
@ -13,11 +13,10 @@ end
|
|||||||
Capybara.register_driver :selenium do |app|
|
Capybara.register_driver :selenium do |app|
|
||||||
profile = Selenium::WebDriver::Firefox::Profile.new
|
profile = Selenium::WebDriver::Firefox::Profile.new
|
||||||
profile['intl.accept_languages'] = 'en'
|
profile['intl.accept_languages'] = 'en'
|
||||||
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(elementScrollBehavior: 1)
|
|
||||||
options = Selenium::WebDriver::Firefox::Options.new
|
options = Selenium::WebDriver::Firefox::Options.new
|
||||||
options.headless! if ENV['CI'] == 'true'
|
options.headless! if ENV['CI'] == 'true'
|
||||||
options.profile = profile
|
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.browser.manage.window.resize_to(1280, 960)
|
||||||
driver
|
driver
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user