Skip to content

host option no longer works for Chrome #552

@ngan

Description

@ngan

Describe the bug
The host option for Chrome no longer works since Google has dropped support for --remote-debugging-address:
https://issues.chromium.org/issues/41487252

What I'd like to do is initiate an instance of Ferrum::Browser with the following options:

browser = Ferrum::Browser.new(host: "ferrum.localhost")

This allows me to see all requests made to Chrome (from Ruby) going through ferrum.localhost so that I can allow-list the URL. With this recent change, Ferrum always hits http://127.0.0.1:XXXXX/json/version and it's tripping up VCR / HTTP stubbing. I don't want to blindly allow all localhost connections so I have to look for 127.0.0.1 and /json/version path.

Ideally, I would love to be able to instruct Ferrum to connect to a specific host (like ferrum.localhost) while still have it boot its Chrome itself.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions