What I have in my code:
public BrowserMobProxy getProxy() throws UnknownHostException {
if (proxy == null) {
proxy = new BrowserMobProxyServer();
proxy.start(0);
}
return proxy;
seleniumProxy = ClientUtil.createSeleniumProxy(getProxy());
caps.setCapability(CapabilityType.PROXY, seleniumProxy);
The problem is running on local its fine but running it on grid(either own or browserstack) it is not working. Is there any way how to make it work - proxy running on local and listening to remote driver?
I tried:
proxy.start(0, InetAddress.getLocalHost());
But without success.