appium / appium/java-client

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

Open
#1,006 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with AndroidDriver.setConnection and ConnectionStateBuilder, then check the Java client's Android connection support and the corresponding Appium capability or command. Done means a test can enable Wi-Fi and set a changing Wi-Fi proxy programmatically instead of configuring it manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.