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
|
-
|
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
|