twalpole / apparition

Capybara driver for Chrome using CDP
MIT License
363 stars 46 forks source link

Fix No Method for NilClass on stack_trace params hash #72

Closed ajjahn closed 3 years ago

ajjahn commented 3 years ago

The problem: Unexpected inner loop exception: undefined method[]' for nil:NilClass: undefined method []' for nil:NilClass:

This issues is nearly identical to a previous fix (#18).

Resolution: The stack_trace key should be a string, and stack trace details should default to a hash. Extracted a method to deduplicate the stack trace params formating.