Skip to content

Is there a way to set WIFI proxy in java-client? #1006

@tomqijianbo

Description

@tomqijianbo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions