-
- Notifications
You must be signed in to change notification settings - Fork 768
Open
Labels
Description
Description
I want to use the java client to enable the WIFI and set the Proxy, but it only can enable the WIFI and no way to set the proxy.
Environment
- java client build version : 6.1.0
- Appium Desktop version: 1.6.2
- Mobile platform/version under test: Android 6.0.1
- Real device : Samsung Galaxy A7
Details
I use the BrowserMob Proxy to start a proxy server and then use the Appium to automate the scripts with the proxy and capture the network requests.
The proxy port will be changed in each test, every time i need to set the WIFI proxy manually. so i want to set mobile WIFI proxy with appium automatically. But i only find setConnection api like below code
AndroidDriver driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), cap);
driver.setConnection(new ConnectionStateBuilder().withWiFiEnabled().build());
How can i set the WIFI proxy with appium?