debug
debug copied to clipboard
Hangs with Ferrum gem
It does not works well with Ferrum gem. After binging.break it loses connection with CDP and raises timeout error.
browser = Ferrum::Browser.new
browser.go_to("https://google.com")
binding.break
Could you try v1.2.0?
require 'bundler/setup'
require 'ferrum'
require 'debug'
browser = Ferrum::Browser.new headless: false
browser.go_to("https://google.com")
binding.break
=> 7| binding.break
=>#0 <main> at main.rb:7
(rdbg) browser.screenshot(path: "google.png") # ruby
eval error: Ferrum::TimeoutError
I see the same error with 1.2.0 and ferrum 0.11. Here is my related issue https://github.com/rubycdp/ferrum/issues/195
???
did you try browser.screenshot on debug console? or another issue described on the first description?
@ko1 I tried both browser.screenshot and browser.go_to. The issue is that all interaction with browser after binding.break stop working.