Proxy Hound Session (ChromeDriver)

I am trying to figure out how to proxy a Hound session. I want to dynamically change the session’s proxy.

I am currently using ChromeDriver to run my browser and paid for a proxy service. From what I’ve researched it looks like I am supposed to update the browser capabilities with the proxy.

This is straight from google:

DesiredCapabilities capabilities =;
// Add the WebDriver proxy capability.
Proxy proxy = new Proxy();
capabilities.setCapability("proxy", proxy);

and Hound() has make_capabilities for a session. How can I set up a proxy to use the make_capabilities for Hound.

This would be my guess:

proxy = ???
Hound.Session.make_capabilities(:session_name, [proxy: proxy])

In Ruby I would be able to use net/http

proxy = Net::HTTP::Proxy('host', port, user, pass) # Or something along these lines

But I am unsure what I need to set the proxy using Elixir and Hound running on top of a ChromeDriver server.
1 Like