rubycdp / ferrum

Headless Chrome Ruby API
https://ferrum.rubycdp.com
MIT License
1.71k stars 123 forks source link

Handle file not found error in `Page#go_to` #281

Closed y-yagi closed 1 year ago

y-yagi commented 2 years ago

Chrome allows to specify file scheme to an URL. When a non-existent file is specified, Chrome returns ERR_CONNECTION_TIMED_OUT. But ferrum doesn't handle that error. So in that case, an error happened, but it looked to work correctly.

This fixed to handle that error inside go_to and correctly raise an error.

route commented 1 year ago

Thank you!