debug icon indicating copy to clipboard operation
debug copied to clipboard

Hangs with Ferrum gem

Open molfar opened this issue 4 years ago • 4 comments

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

molfar avatar Sep 20 '21 11:09 molfar

Could you try v1.2.0?

ko1 avatar Sep 29 '21 08:09 ko1

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

molfar avatar Oct 04 '21 07:10 molfar

???

did you try browser.screenshot on debug console? or another issue described on the first description?

ko1 avatar Oct 28 '21 17:10 ko1

@ko1 I tried both browser.screenshot and browser.go_to. The issue is that all interaction with browser after binding.break stop working.

molfar avatar Oct 28 '21 17:10 molfar