Method: Selenium::WebDriver::Remote::Response#error_message

Defined in:
lib/selenium/webdriver/remote/response.rb

#error_messageObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
31
32
33
34
35
# File 'lib/selenium/webdriver/remote/response.rb', line 28

def error_message
  val = @payload['value']
  msg = val['message'] or return ""

  msg << " (#{ val['class'] })" if val['class']

  msg
end