Class: Minibidi::Browser::ErrorData
- Inherits:
-
Object
- Object
- Minibidi::Browser::ErrorData
- Defined in:
- lib/minibidi/browser.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.parse(payload) ⇒ Object
102 103 104 105 106 107 108 109 |
# File 'lib/minibidi/browser.rb', line 102 def self.parse(payload) # {:type=>"error", :id=>1, :error=>"invalid argument", :message=>"method: string value expected", :stacktrace=>"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5\nInvalidArgumentError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:384:5\nassert.that/<@chrome://remote/content/shared/webdriver/Assert.sys.mjs:485:13\nassert.string@chrome://remote/content/shared/webdriver/Assert.sys.mjs:385:53\nonPacket@chrome://remote/content/webdriver-bidi/WebDriverBiDiConnection.sys.mjs:172:19\nonMessage@chrome://remote/content/server/WebSocketTransport.sys.mjs:127:18\nhandleEvent@chrome://remote/content/server/WebSocketTransport.sys.mjs:109:14\n"} new( type: payload[:error], message: payload[:message], stacktrace: (payload[:stacktrace] || '').split("\n"), ) end |