这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@karlbaumg
Copy link

@karlbaumg karlbaumg commented Nov 1, 2025

While testing #1066 with the driver, I noticed the binding IP is not propagated in some cases. I validated this PR together with appium/appium-xcuitest-driver#2645 with the following test:

const {remote} = require('webdriverio');

const capabilities = {
  platformName: 'iOS',
  'appium:automationName': 'XCUITest',
  'appium:deviceName': 'iPhone 16 Pro',
  'appium:app': 'com.apple.mobilesafari',
  'appium:wdaBindingIP': "10.244.1.3",
  'appium:wdaRemotePort': 8100,
};

const wdOpts = {
  hostname: process.env.APPIUM_HOST || 'localhost',
  port: parseInt(process.env.APPIUM_PORT, 10) || 4723,
  logLevel: 'info',
  capabilities,
};

async function runTest() {
  const driver = await remote(wdOpts);
  try {
    const batteryItem = await driver.$('//*[@text="Battery"]');
    await batteryItem.click();
  } finally {
    await driver.pause(1000);
    await driver.deleteSession();
  }
}

runTest().catch(console.error);

In the logs I see the custom IP is used and 127.0.0.1:8100 does not answer which is the expected behavior.

Signed-off-by: Karl Baumgartner <178656887+karlbaumg@users.noreply.github.com>
@mykola-mokhnach mykola-mokhnach merged commit d12f421 into appium:master Nov 1, 2025
41 of 44 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 1, 2025
## [10.2.1](v10.2.0...v10.2.1) (2025-11-01)

### Miscellaneous Chores

* update xcodebuild commands for the new binding ip capability ([#1067](#1067)) ([d12f421](d12f421))
@github-actions
Copy link

github-actions bot commented Nov 1, 2025

🎉 This PR is included in version 10.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants