selenium-webdriver 3.141.5926 → 3.142.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
  SHA1:
3
- metadata.gz: 98597f8b669dbd074c696ddca89ec8c4a3fd9cd9
4
- data.tar.gz: '097e90bbf9abb8a1a7cccce8fbcad9b7ad674990'
3
+ metadata.gz: 8c49d98b41b1b4019754a8c48e695d80c13a6920
4
+ data.tar.gz: 89388af584e8090ab3ffc07744800a4476616ec6
5
5
  SHA512:
6
- metadata.gz: c8020fbcea75fd5aeef8ab8d8b2ed74667291d3166ed55a9cad23be3319824355579306bf62e2cd342b22ea5c41ec8571940378ca374d327fdff8c3bc837f35b
7
- data.tar.gz: 138443d80b20220f2d008a33e283db77c34756fe0215edb95b584762ed186658c2b73cf77c945cd42e003dca5f6aba142b620c286eba3119898b5f2437d1c58a
6
+ metadata.gz: 3a395f0069eab5781ce742630a13d688d3c7a9688806105f938b266fc515fefbc71b0ac08248784f0594a7e0a07e27d59b309d4b39808be262344e1c7b1ec96e
7
+ data.tar.gz: a1d3bf1d12ca7209b5d92d27f2a530ecdf15fd3f9a8ab125380064e656e434b3fbb9010f4b0bd2e9ceb2477e33d46b73a1e0ed10140d153799ce8ebda5b0a222
data/CHANGES CHANGED
@@ -1,3 +1,16 @@
1
+ 3.142.0 (2019-04-24)
2
+ ====================
3
+
4
+ Ruby:
5
+ * Fixed an issue when services are not shutdown properly
6
+
7
+ Firefox:
8
+ * Fixed an issue when passing :profile string to Firefox::Options.new would
9
+ result in NoMethodError. Now it will find a profile with such name on your
10
+ system and use it accordingly (issue #7119)
11
+ * Fixed an issue when instantiating Firefox driver with capabilities having
12
+ :marionette would result in NoMethodError (issue #7120)
13
+
1
14
  3.141.5926 (2019-04-18)
2
15
  =======================
3
16
 
@@ -35,7 +35,7 @@ module Selenium
35
35
  @missing_text = nil
36
36
 
37
37
  class << self
38
- attr_reader :default_port, :driver_path, :executable, :missing_text
38
+ attr_reader :default_port, :driver_path, :executable, :missing_text, :shutdown_supported
39
39
 
40
40
  def chrome(*args)
41
41
  Chrome::Service.new(*args)
@@ -100,7 +100,7 @@ module Selenium
100
100
  end
101
101
 
102
102
  def stop
103
- return unless @shutdown_supported
103
+ return unless self.class.shutdown_supported
104
104
 
105
105
  stop_server
106
106
  @process.poll_for_exit STOP_TIMEOUT
@@ -39,7 +39,8 @@ module Selenium
39
39
  private
40
40
 
41
41
  def marionette?(opts)
42
- opts.delete(:marionette) != false && (opts.dig(:desired_capabilities, :marionette) != false)
42
+ opts.delete(:marionette) != false &&
43
+ (!opts[:desired_capabilities] || opts[:desired_capabilities][:marionette] != false)
43
44
  end
44
45
  end
45
46
 
@@ -45,7 +45,7 @@ module Selenium
45
45
  def initialize(**opts)
46
46
  @args = Set.new(opts.delete(:args) || [])
47
47
  @binary = opts.delete(:binary)
48
- @profile = opts.delete(:profile)
48
+ @profile = process_profile(opts.delete(:profile))
49
49
  @log_level = opts.delete(:log_level)
50
50
  @prefs = opts.delete(:prefs) || {}
51
51
  @options = opts.delete(:options) || {}
@@ -123,11 +123,7 @@ module Selenium
123
123
  #
124
124
 
125
125
  def profile=(profile)
126
- @profile = if profile.is_a?(Profile)
127
- profile
128
- else
129
- Profile.from_name(profile)
130
- end
126
+ @profile = process_profile(profile)
131
127
  end
132
128
 
133
129
  #
@@ -145,6 +141,21 @@ module Selenium
145
141
 
146
142
  {KEY => opts}
147
143
  end
144
+
145
+ private
146
+
147
+ def process_profile(profile)
148
+ return unless profile
149
+
150
+ case profile
151
+ when Profile
152
+ profile
153
+ when String
154
+ Profile.from_name(profile)
155
+ else
156
+ raise Error::WebDriverError, "don't know how to handle profile: #{profile.inspect}"
157
+ end
158
+ end
148
159
  end # Options
149
160
  end # Firefox
150
161
  end # WebDriver
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Selenium
21
21
  module WebDriver
22
- VERSION = '3.141.5926'
22
+ VERSION = '3.142.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: 3.141.5926
4
+ version: 3.142.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: 2019-04-18 00:00:00.000000000 Z
13
+ date: 2019-04-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  requirement: !ruby/object:Gem::Requirement