selenium-webdriver 4.8.6 → 4.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +9 -0
- data/lib/selenium/webdriver/common/selenium_manager.rb +1 -1
- data/lib/selenium/webdriver/devtools/network_interceptor.rb +1 -1
- data/lib/selenium/webdriver/devtools.rb +11 -1
- data/lib/selenium/webdriver/remote/driver.rb +4 -2
- data/lib/selenium/webdriver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1ae360596be57c29db02808a7dae16c36062801e7639e83b366a54cdba5e3b2
|
4
|
+
data.tar.gz: f31169f7cfec055abb7a2f3595eee8e453acf316651a829af5f254a0f824cf9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 675dad14a433939c81dabbb0276b1c5a97d95f0b1451ca48aa0e908c2cc0658f1d90e3970be4e3f62e65ff5eaef5cf391b5d646f50413ca46ea2f24de821fb5a
|
7
|
+
data.tar.gz: dd9d26b855e7b1f01f667d113181f6e7b35367ee74459b693a3c5872cc92a9e58f9d2d849de3aaff9738e3e77cb3f3117617219b4f76e2fda2f66bc75279ee8d
|
data/CHANGES
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
4.9.0 (2023-04-21)
|
2
|
+
=========================
|
3
|
+
Ruby:
|
4
|
+
* Fix devtools version fallback (#11869)
|
5
|
+
* Fix bug in selenium manager escaping back slashes in Windows (#11884)
|
6
|
+
|
7
|
+
BiDi:
|
8
|
+
* Released selenium-devtools 0.112.0 (supports CDP v85, v110, v111, v112)
|
9
|
+
|
1
10
|
4.8.6 (2023-03-29)
|
2
11
|
=========================
|
3
12
|
Ruby:
|
@@ -134,7 +134,7 @@ module Selenium
|
|
134
134
|
request_id: request.id,
|
135
135
|
url: request.url,
|
136
136
|
method: request.method,
|
137
|
-
post_data: request.post_data,
|
137
|
+
post_data: (Base64.strict_encode64(request.post_data) if request.post_data),
|
138
138
|
headers: request.headers.map do |k, v|
|
139
139
|
{name: k, value: v}
|
140
140
|
end
|
@@ -52,7 +52,17 @@ module Selenium
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def method_missing(method, *_args)
|
55
|
-
|
55
|
+
namespace = "Selenium::DevTools::V#{Selenium::DevTools.version}"
|
56
|
+
methods_to_classes = "#{namespace}::METHODS_TO_CLASSES"
|
57
|
+
|
58
|
+
desired_class = if Object.const_defined?(methods_to_classes)
|
59
|
+
# selenium-devtools 0.113 and newer
|
60
|
+
"#{namespace}::#{Object.const_get(methods_to_classes)[method]}"
|
61
|
+
else
|
62
|
+
# selenium-devtools 0.112 and older
|
63
|
+
"#{namespace}::#{method.capitalize}}"
|
64
|
+
end
|
65
|
+
|
56
66
|
return unless Object.const_defined?(desired_class)
|
57
67
|
|
58
68
|
self.class.class_eval do
|
@@ -45,8 +45,10 @@ module Selenium
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def devtools_version
|
48
|
-
capabilities['se:cdpVersion']&.split('.')&.first
|
49
|
-
|
48
|
+
cdp_version = capabilities['se:cdpVersion']&.split('.')&.first
|
49
|
+
raise Error::WebDriverError, 'DevTools is not supported by the Remote Server' unless cdp_version
|
50
|
+
|
51
|
+
Integer(cdp_version)
|
50
52
|
end
|
51
53
|
|
52
54
|
def process_options(options, capabilities)
|
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.
|
4
|
+
version: 4.9.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: 2023-
|
13
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rexml
|