You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using together with Cuprite and executing Rspec command like: page.evaluate_script("jQuery('body').addClass('not-reloaded');")
it's erroring with:
NoMethodError: undefined method `compact' for "(cyclic structure)":String
from (pry):5:in `rescue in handle_response'
Caused by NoMethodError: undefined method `compact' for "(cyclic structure)":String
from ~/.rvm/gems/ruby-2.5.3/bundler/gems/ferrum-5b6cb3f617b0/lib/ferrum/page/runtime.rb:127:in `handle_response'
Me neither but otherwise you'd get Stack Level too deep (SystemStackError) because it is cyclic structure... I checked selenium and this bugs them as well, though I'd prefer returning something meaningful rather then SystemStackError.
When using together with Cuprite and executing Rspec command like:
page.evaluate_script("jQuery('body').addClass('not-reloaded');")
it's erroring with:
Correspoding
reduce_props(object_id, [])
at https://github.com/route/ferrum/blob/master/lib/ferrum/page/runtime.rb#L122 is returning"(cyclic structure)"
String, so it's clear whycompact
call is failing.Not sure what's best approach to handle this case.
The text was updated successfully, but these errors were encountered: