I am writing automation test for mobileweb and mobileapp.
For mobileweb, I am using browsermob proxy to capture the networks responses from the browser.
https://github.com/lightbody/browsermob-proxy
Mobileweb code:-
I want to start the proxy for the firefox driver and run the tests.
Tests working in my local environment.
How can i setup proxy on saucelabs?
My code:-
ProxyServer proxyServer = new ProxyServer(4444);
proxyServer.start();
Proxy proxy = proxyServer.seleniumProxy();
DesiredCapabilities capabillities = DesiredCapabilities.firefox();
capabillities.setCapability(CapabilityType.PROXY, proxy);
capabillities.setCapability("version", "5");
capabillities.setCapability("platform", Platform.XP);
this.driver = new RemoteWebDriver(
new URL("http://myname:xxxxxx@ondemand.saucelabs.com:80/wd/hub"),
capabillities);
Is it possible to use the same proxy code to capture the networks responses for the mobile app.