Skip to content

Commit 7606f99

Browse files
authored
Merge pull request rails#52172 from yahonda/selenium-webdriver-4220
Support selenium-webdriver 4.22.0 that enables CDP in Firefox by default
2 parents 2422168 + 1b905ed commit 7606f99

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,9 @@ GEM
512512
google-protobuf (~> 3.25)
513513
sass-embedded (1.69.6-x86_64-linux-gnu)
514514
google-protobuf (~> 3.25)
515-
selenium-webdriver (4.20.1)
515+
selenium-webdriver (4.22.0)
516516
base64 (~> 0.2)
517+
logger (~> 1.4)
517518
rexml (~> 3.2, >= 3.2.5)
518519
rubyzip (>= 1.2.2, < 3.0)
519520
websocket (~> 1.0)

actionpack/test/dispatch/system_testing/driver_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class DriverTest < ActiveSupport::TestCase
120120
expected = {
121121
"moz:firefoxOptions" => {
122122
"args" => ["--host=127.0.0.1"],
123-
"prefs" => { "browser.startup.homepage" => "http://www.seleniumhq.com/" }
123+
"prefs" => { "remote.active-protocols" => 3, "browser.startup.homepage" => "http://www.seleniumhq.com/" }
124124
},
125125
"browserName" => "firefox"
126126
}
@@ -137,7 +137,7 @@ class DriverTest < ActiveSupport::TestCase
137137
expected = {
138138
"moz:firefoxOptions" => {
139139
"args" => ["-headless", "--host=127.0.0.1"],
140-
"prefs" => { "browser.startup.homepage" => "http://www.seleniumhq.com/" }
140+
"prefs" => { "remote.active-protocols" => 3, "browser.startup.homepage" => "http://www.seleniumhq.com/" }
141141
},
142142
"browserName" => "firefox"
143143
}

0 commit comments

Comments
 (0)