selenium-webdriver 4.43.0 → 4.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: effb8c974679aaa658643eef38fe9b70d88b5fa13c7d08985dd9c38c0e022988
4
- data.tar.gz: 8d776bc6e00550c5dec437df0b498a9c9a98deb956a109a214092e12bbda2472
3
+ metadata.gz: 338c4f4b065ecf290be0ab172218f7acddf22b3cab15e97c00de530b5aa49074
4
+ data.tar.gz: bb8c3bb3424d3e82292fabf82f205bf990b86bb0e3a8c0412416ee2070d0bf6a
5
5
  SHA512:
6
- metadata.gz: 90db0f7a6da9663167293a2b07156470e964dfaa011a1ae02c1755291e6aa9c956695c23cfca16ac592fd46ed10f378351fc50db8f8c1393dba62a22dad7f235
7
- data.tar.gz: b845333e390ef2f02e212f4ab495a40fa5abd17988b42a8827fad14b71f16ea02b19a8837714f4efa0b6b3081d5dc595339fc0d11a105d0aa05ae095d2f6b4b8
6
+ metadata.gz: e46ddc09ebbbba3d64acf7e283134e4e4d21ec8452b7cc94b44589a7522802fd9f1b9c25d25b93b9d17274f8d3affcf9381f365a5dc92e90657042a98ed00da2
7
+ data.tar.gz: 991177266a82f9486eafde5f04545618b4df1b0ce708904193c80f25859616228c72b28fed13d829a81f641b012172379bd62d35dcbdb38bbcb6adaeda7ff7fd
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ 4.44.0 (2026-05-12)
2
+ =========================
3
+ * Support CDP versions: v146, v147, v148
4
+ * Modern Firefox does not like both the `-v` and `--log` flags at the same time (#17412)
5
+ * Fix credential issue with private key (#17188)
6
+
1
7
  4.43.0 (2026-04-09)
2
8
  =========================
3
9
  * Support CDP versions: v145, v146, v147
data/README.md CHANGED
@@ -1,34 +1,54 @@
1
1
  # selenium-webdriver
2
2
 
3
- This gem provides Ruby bindings for Selenium and supports MRI >= 3.2.
3
+ Ruby language bindings for [Selenium WebDriver](https://www.selenium.dev).
4
+ Selenium automates browsers for testing and web-based task automation.
4
5
 
5
- ## Install
6
+ Supports MRI >= 3.2.
6
7
 
7
- gem install selenium-webdriver
8
+ ## Installation
8
9
 
9
- ## Links
10
+ ```bash
11
+ gem install selenium-webdriver
12
+ ```
10
13
 
11
- * https://rubygems.org/gems/selenium-webdriver
12
- * https://www.selenium.dev/selenium/docs/api/rb/index.html
13
- * https://www.selenium.dev/documentation/?tab=ruby
14
- * https://github.com/SeleniumHQ/selenium/issues
14
+ ## Quick Start
15
15
 
16
- ## License
16
+ ```ruby
17
+ require "selenium-webdriver"
18
+
19
+ driver = Selenium::WebDriver.for :chrome
20
+ begin
21
+ driver.get "https://www.selenium.dev"
22
+ puts driver.title
23
+ ensure
24
+ driver.quit
25
+ end
26
+ ```
27
+
28
+ Selenium Manager automatically handles browser driver installation — no manual driver setup required.
29
+
30
+ ## Documentation
31
+
32
+ - [Getting Started](https://www.selenium.dev/documentation/webdriver/getting_started/)
33
+ - [Ruby API Docs](https://www.selenium.dev/selenium/docs/api/rb/index.html)
34
+ - [Selenium Manager](https://www.selenium.dev/documentation/selenium_manager/)
35
+ - [Selenium Grid](https://www.selenium.dev/documentation/grid/)
17
36
 
18
- Copyright 2009-2024 Software Freedom Conservancy
37
+ ## Support
19
38
 
20
- Licensed to the Software Freedom Conservancy (SFC) under one
21
- or more contributor license agreements. See the NOTICE file
22
- distributed with this work for additional information
23
- regarding copyright ownership. The SFC licenses this file
24
- to you under the Apache License, Version 2.0 (the
25
- "License"); you may not use this file except in compliance
26
- with the License. You may obtain a copy of the License at
39
+ - [Selenium Chat](https://www.selenium.dev/support/#ChatRoom)
40
+ - [GitHub Issues](https://github.com/SeleniumHQ/selenium/issues)
27
41
 
28
- http://www.apache.org/licenses/LICENSE-2.0
42
+ ## Contributing
43
+
44
+ Contributions are welcome via [GitHub](https://github.com/SeleniumHQ/selenium/) pull requests.
45
+ See the [source code](https://github.com/SeleniumHQ/selenium/tree/trunk/rb) for this binding.
46
+
47
+ ## Links
48
+
49
+ - [RubyGems](https://rubygems.org/gems/selenium-webdriver)
50
+ - [Documentation](https://www.selenium.dev/documentation/?tab=ruby)
51
+
52
+ ## License
29
53
 
30
- Unless required by applicable law or agreed to in writing, software
31
- distributed under the License is distributed on an "AS IS" BASIS,
32
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33
- See the License for the specific language governing permissions and
34
- limitations under the License.
54
+ Licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
Binary file
Binary file
Binary file
@@ -47,7 +47,7 @@ module Selenium
47
47
  new(id: decode(opts['credentialId']),
48
48
  resident_credential: opts['isResidentCredential'],
49
49
  rp_id: opts['rpId'],
50
- private_key: opts['privateKey'],
50
+ private_key: decode(opts['privateKey']),
51
51
  sign_count: opts['signCount'],
52
52
  user_handle: user_handle)
53
53
  end
@@ -33,25 +33,35 @@ module Selenium
33
33
  args << '0'
34
34
  end
35
35
 
36
- if ENV.key?('SE_DEBUG')
37
- remove_log_args(args)
38
- args << '-v'
39
- end
36
+ configure_debug_args(args) if ENV.key?('SE_DEBUG')
37
+
38
+ super
39
+ end
40
+
41
+ def launch
42
+ configure_debug_args(args) if ENV.key?('SE_DEBUG')
40
43
 
41
44
  super
42
45
  end
43
46
 
44
47
  private
45
48
 
46
- def remove_log_args(args)
47
- if (index = args.index('--log'))
48
- args.delete_at(index) # delete '--log'
49
- args.delete_at(index) if args[index] && !args[index].start_with?('-') # delete value if present
50
- warn_driver_log_override
51
- elsif (index = args.index { |arg| arg.start_with?('--log=') })
52
- args.delete_at(index)
53
- warn_driver_log_override
49
+ def configure_debug_args(args)
50
+ # An explicit geckodriver log setting is more specific than Selenium's
51
+ # generic SE_DEBUG fallback, so preserve it and skip adding `-v`.
52
+ if args.any? { |arg| arg.start_with?('--log') }
53
+ warn_explicit_log_preference unless @log_preference_warned
54
+ @log_preference_warned = true
55
+ args.reject! { |arg| arg.start_with?('-v') }
56
+ return
54
57
  end
58
+
59
+ args << '-v' unless args.any? { |arg| /\A-v+\z/.match?(arg) }
60
+ end
61
+
62
+ def warn_explicit_log_preference
63
+ WebDriver.logger.warn('SE_DEBUG is set; preserving user-specified geckodriver --log setting instead of ' \
64
+ 'adding -v', id: :se_debug)
55
65
  end
56
66
  end # Service
57
67
  end # Firefox
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module WebDriver
22
- VERSION = '4.43.0'
22
+ VERSION = '4.44.0'
23
23
  end # WebDriver
24
24
  end # Selenium
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.43.0
4
+ version: 4.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2026-04-10 00:00:00.000000000 Z
13
+ date: 2026-05-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: base64