Class: Selenium::WebDriver::Remote::Response
- Defined in:
- lib/appium_lib/common/patch.rb
Overview
Print Appium’s origValue error messages. rubocop:disable Style/ClassAndModuleChildren rubocop:disable Style/AndOr
Instance Method Summary collapse
Instance Method Details
#error_message ⇒ Object
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/appium_lib/common/patch.rb', line 133 def val = value case val when Hash msg = val['origValue'] || val['message'] or return 'unknown error' msg << " (#{val['class']})" if val['class'] when String msg = val else msg = "unknown error, status=#{status}: #{val.inspect}" end msg end |