selenium-webdriver 4.0.2 → 4.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93644f0cd4cba43ac1e48314eba504907059c877e5269ade70629427cc03f8e5
4
- data.tar.gz: 640c8f580d87606e83ca42209ea4672eb8adae9f81ce77993af9cc3cad469255
3
+ metadata.gz: 7038d1d04e32c0eab2f4081b63161c315afcec139a1d2b45109e41852792f9b5
4
+ data.tar.gz: 5208af4b04d474558411a77a25c7150a1274a9123f4ceb3d50a4db7cd5656c2e
5
5
  SHA512:
6
- metadata.gz: e50651efe20b569e9400d3276969341de5fc6feb042ec344ee600318449f7b6d2012a4cd474dc22da1ec4592cfc8d880efa00dde3e3022b734e919ca6e2d21ec
7
- data.tar.gz: e0b78655050282f75e72b2abf8094dc3674d1470ea60517114fc64d978c1f7a28255b13b3db13a2471b796969a73bd6e5e560653051a25f3492b844f67ec02be
6
+ metadata.gz: 1896dab6cb8b33ffe30a042829f118526709c2e45e933ad299e4370ab2a1f97263fda23183fc0e7ccce34ee2b1e131427b98919c573fd1c192d681cfc05fc740
7
+ data.tar.gz: 95da54a1ad17e54cdb08689c9fc148993b8e405a86319f8ed8ca4b49e00935de5182ea28e67a4987c7eb7671ffc9d4467062bf51fe0ae2c1fd798c317b765f1c
data/CHANGES CHANGED
@@ -1,3 +1,15 @@
1
+ 4.0.3 (2021-10-20)
2
+ =========================
3
+
4
+ Firefox:
5
+ * Fixed bug avoiding camel casing prefs (#9944 thanks @glaszig)
6
+
7
+ Ruby:
8
+ * Fixed bug in Select class for finding by index (#9945)
9
+
10
+ Remote:
11
+ * Fixed bug preventing sending keys with an empty value
12
+
1
13
  4.0.2 (2021-10-19)
2
14
  =========================
3
15
 
@@ -179,8 +179,6 @@ module Selenium
179
179
  def camel_case(str)
180
180
  str.gsub(/_([a-z])/) { Regexp.last_match(1).upcase }
181
181
  end
182
- end
183
-
184
- # Options
182
+ end # Options
185
183
  end # WebDriver
186
184
  end # Selenium
@@ -175,7 +175,7 @@ module Selenium
175
175
  end
176
176
 
177
177
  def camelize?(key)
178
- key != :prefs
178
+ key != "prefs"
179
179
  end
180
180
  end # Options
181
181
  end # Firefox
@@ -404,7 +404,7 @@ module Selenium
404
404
  def send_keys_to_element(element, keys)
405
405
  # TODO: rework file detectors before Selenium 4.0
406
406
  if @file_detector
407
- local_files = keys.first.split("\n").map { |key| @file_detector.call(Array(key)) }.compact
407
+ local_files = keys.first&.split("\n")&.map { |key| @file_detector.call(Array(key)) }&.compact
408
408
  if local_files.any?
409
409
  keys = local_files.map { |local_file| upload(local_file) }
410
410
  keys = Array(keys.join("\n"))
@@ -258,7 +258,7 @@ module Selenium
258
258
  end
259
259
 
260
260
  def find_by_index(index)
261
- options.select { |option| option.dom_attribute(:index) == index.to_s }
261
+ options.select { |option| option.property(:index) == index }
262
262
  end
263
263
 
264
264
  def find_by_value(value)
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module WebDriver
22
- VERSION = '4.0.2'
22
+ VERSION = '4.0.3'
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.0.2
4
+ version: 4.0.3
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: 2021-10-19 00:00:00.000000000 Z
13
+ date: 2021-10-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: childprocess