selenium-webdriver 3.4.2 → 3.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ 3.4.3 (2017-06-16)
2
+ ==================
3
+
4
+ Ruby:
5
+ * Fixed a regression when passing symbol as :desired_capabilities caused NoMethodError (issue 4187).
6
+
1
7
  3.4.2 (2017-06-14)
2
8
  ==================
3
9
 
@@ -42,6 +42,14 @@ module Selenium
42
42
  #
43
43
  def self.handshake(**opts)
44
44
  desired_capabilities = opts.delete(:desired_capabilities)
45
+
46
+ if desired_capabilities.is_a?(Symbol)
47
+ unless Remote::Capabilities.respond_to?(desired_capabilities)
48
+ raise Error::WebDriverError, "invalid desired capability: #{desired_capabilities.inspect}"
49
+ end
50
+ desired_capabilities = Remote::Capabilities.__send__(desired_capabilities)
51
+ end
52
+
45
53
  bridge = new(opts)
46
54
  capabilities = bridge.create_session(desired_capabilities)
47
55
 
@@ -5,7 +5,7 @@ raise "cwd must be #{root} when reading gemspec" if root != Dir.pwd
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'selenium-webdriver'
8
- s.version = '3.4.2'
8
+ s.version = '3.4.3'
9
9
 
10
10
  s.authors = ['Alex Rodionov', 'Titus Fortner']
11
11
  s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com']
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.4.2
5
+ version: 3.4.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alex Rodionov
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2017-06-15 00:00:00 +07:00
14
+ date: 2017-06-16 00:00:00 +07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency