selenium-webdriver 2.9.0 → 2.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,9 +27,14 @@ module Selenium
27
27
 
28
28
  def error_message
29
29
  val = @payload['value']
30
- msg = val['message'] or return ""
31
30
 
32
- msg << " (#{ val['class'] })" if val['class']
31
+ case val
32
+ when Hash
33
+ msg = val['message'] or return "unknown error"
34
+ msg << " (#{ val['class'] })" if val['class']
35
+ when String
36
+ msg = val
37
+ end
33
38
 
34
39
  msg
35
40
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.9.0
5
+ version: 2.9.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jari Bakken