selenium-webdriver 4.8.5 → 4.8.6

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: 88a2538aba27631f86ee74a7b8623687a9c78557fcd616bf45bf56def45c5c16
4
- data.tar.gz: 3c1c76ffa37595bcebb891c00256ca22bd05b15f102b1c09dc252ffdfdc30680
3
+ metadata.gz: 3c69ba703c9453c083e2bbe503e91d8b97e7c2d01b2f3d9c951da889cba869ba
4
+ data.tar.gz: 424f8fdd62f259292559cf5e89dcea5de3a6463b8b73efe6127a7dde780fae22
5
5
  SHA512:
6
- metadata.gz: 532aab442982dadef146df8e485ac4734ebed84a7a3ae47b34d7311b4f721016af8525c18c0bd706cf46522fd00c68bf3c91fe066832ee7a92a6d87da66d8df9
7
- data.tar.gz: f8eca6d0ae7ced9a458802d2ce6869b5b92dd73d0b9874cf1bcd9150525984c3bfac1cfabe1bee93bb6da0bd19688583617b52445302831d5f12fbb79c9c699f
6
+ metadata.gz: ee7364197f821c41049983d4445f1e41a9d9200509f160af5df28bbb8e7e3195278990db0c2ab79f25d37f2d52f5cfba8c25cc15e3996e70007363904451e44f
7
+ data.tar.gz: c8ca6b72468be025a71afe7142979fba69f8d3b1652e2dc68c5db6de44b8b9aa3607b4345317c9be446247d4ce8b174c47a71f16499128a5935612b78436c142
data/CHANGES CHANGED
@@ -1,9 +1,13 @@
1
+ 4.8.6 (2023-03-29)
2
+ =========================
3
+ Ruby:
4
+ * Properly escape arguments passed to Selenium Manager
5
+
1
6
  4.8.5 (2023-03-28)
2
7
  =========================
3
8
  Ruby:
4
9
  * Wrapping browser name in quotes when calling Selenium Manager
5
10
 
6
-
7
11
  4.8.4 (2023-03-28)
8
12
  =========================
9
13
  Ruby:
@@ -40,18 +40,18 @@ module Selenium
40
40
  raise ArgumentError, "SeleniumManager requires a WebDriver::Options instance, not #{options.inspect}"
41
41
  end
42
42
 
43
- command = [binary, '--browser', "'#{options.browser_name}'", '--output', 'json']
43
+ command = [binary, '--browser', options.browser_name, '--output', 'json']
44
44
  if options.browser_version
45
45
  command << '--browser-version'
46
46
  command << options.browser_version
47
47
  end
48
48
  if options.respond_to?(:binary) && !options.binary.nil?
49
49
  command << '--browser-path'
50
- command << "\"#{options.binary.gsub('\ ', ' ').gsub(' ', '\ ')}\""
50
+ command << options.binary
51
51
  end
52
52
  command << '--debug' if WebDriver.logger.debug?
53
53
 
54
- location = run(command.join(' '))
54
+ location = run(*command)
55
55
  WebDriver.logger.debug("Driver found at #{location}")
56
56
  Platform.assert_executable location
57
57
 
@@ -81,11 +81,11 @@ module Selenium
81
81
  end
82
82
  end
83
83
 
84
- def run(command)
84
+ def run(*command)
85
85
  WebDriver.logger.debug("Executing Process #{command}")
86
86
 
87
87
  begin
88
- stdout, stderr, status = Open3.capture3(command)
88
+ stdout, stderr, status = Open3.capture3(*command)
89
89
  json_output = stdout.empty? ? nil : JSON.parse(stdout)
90
90
  result = json_output&.dig('result', 'message')
91
91
  rescue StandardError => e
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module WebDriver
22
- VERSION = '4.8.5'
22
+ VERSION = '4.8.6'
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.8.5
4
+ version: 4.8.6
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-03-28 00:00:00.000000000 Z
13
+ date: 2023-03-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rexml