appium-webdriveragent 16.4.0 → 16.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/Scripts/build-webdriveragent.mjs +9 -9
  3. package/Scripts/build.sh +8 -1
  4. package/WebDriverAgent.xcodeproj/project.pbxproj +125 -107
  5. package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationTests_watchOS.xcscheme +4 -4
  6. package/WebDriverAgentLib/FBAlert.m +8 -6
  7. package/WebDriverAgentLib/Info.plist +2 -2
  8. package/WebDriverAgentTests/IntegrationTests_watchOS/IntegrationTests_watchOS-Bridging-Header.h +21 -0
  9. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAAlertIntegrationTests.swift +11 -9
  10. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAAppLifecycleIntegrationTests.swift +18 -38
  11. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAClickIntegrationTests.swift +11 -17
  12. package/WebDriverAgentTests/IntegrationTests_watchOS/WDADeviceIntegrationTests.swift +50 -71
  13. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAElementAttributeIntegrationTests.swift +23 -41
  14. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAFindIntegrationTests.swift +70 -95
  15. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAScreenshotAndSourceIntegrationTests.swift +24 -22
  16. package/WebDriverAgentTests/IntegrationTests_watchOS/WDATypingIntegrationTests.swift +44 -28
  17. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAWatchInProcessTestCase.swift +51 -0
  18. package/build/lib/check-dependencies.d.ts.map +1 -1
  19. package/build/lib/check-dependencies.js +21 -7
  20. package/build/lib/check-dependencies.js.map +1 -1
  21. package/build/lib/constants.d.ts +1 -2
  22. package/build/lib/constants.d.ts.map +1 -1
  23. package/build/lib/constants.js +1 -2
  24. package/build/lib/constants.js.map +1 -1
  25. package/build/lib/types.d.ts +2 -2
  26. package/build/lib/types.d.ts.map +1 -1
  27. package/build/lib/utils/index.d.ts +1 -1
  28. package/build/lib/utils/index.d.ts.map +1 -1
  29. package/build/lib/utils/index.js +1 -1
  30. package/build/lib/utils/index.js.map +1 -1
  31. package/build/lib/utils/platform.d.ts +12 -0
  32. package/build/lib/utils/platform.d.ts.map +1 -1
  33. package/build/lib/utils/platform.js +23 -1
  34. package/build/lib/utils/platform.js.map +1 -1
  35. package/build/lib/utils/xctestrun.js +27 -3
  36. package/build/lib/utils/xctestrun.js.map +1 -1
  37. package/build/lib/webdriveragent.d.ts.map +1 -1
  38. package/build/lib/webdriveragent.js +4 -1
  39. package/build/lib/webdriveragent.js.map +1 -1
  40. package/build/lib/xcodebuild.d.ts.map +1 -1
  41. package/build/lib/xcodebuild.js +19 -9
  42. package/build/lib/xcodebuild.js.map +1 -1
  43. package/lib/check-dependencies.ts +23 -7
  44. package/lib/constants.ts +1 -2
  45. package/lib/types.ts +4 -2
  46. package/lib/utils/index.ts +1 -1
  47. package/lib/utils/platform.ts +25 -1
  48. package/lib/utils/xctestrun.ts +29 -3
  49. package/lib/webdriveragent.ts +5 -1
  50. package/lib/xcodebuild.ts +27 -12
  51. package/package.json +3 -2
  52. package/WebDriverAgentTests/IntegrationTests_watchOS/WDASessionIntegrationTests.swift +0 -72
  53. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAUnknownCommandIntegrationTests.swift +0 -24
  54. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAWatchHTTPClient.swift +0 -95
  55. package/WebDriverAgentTests/IntegrationTests_watchOS/WDAWatchIntegrationTestCase.swift +0 -61
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [16.5.0](https://github.com/appium/WebDriverAgent/compare/v16.4.0...v16.5.0) (2026-08-20)
2
+
3
+ ### Features
4
+
5
+ * Add watchOS support to the TS driver, functional tests, and release pipeline ([#1217](https://github.com/appium/WebDriverAgent/issues/1217)) ([b53bb8f](https://github.com/appium/WebDriverAgent/commit/b53bb8fbd03ea37fd3bfc4e3eca4d2c6765b9c9c))
6
+
1
7
  ## [16.4.0](https://github.com/appium/WebDriverAgent/compare/v16.3.0...v16.4.0) (2026-08-19)
2
8
 
3
9
  ### Features
@@ -12,14 +12,15 @@ const isMainModule = process.argv[1] && path.resolve(process.argv[1]) === __file
12
12
  const LOG = new logger.getLogger('WDABuild');
13
13
  const ROOT_DIR = path.resolve(__dirname, '..');
14
14
  const DERIVED_DATA_PATH = `${ROOT_DIR}/wdaBuild`;
15
- const WDA_BUNDLE = 'WebDriverAgentRunner-Runner.app';
16
- const WDA_BUNDLE_PATH = path.join(DERIVED_DATA_PATH, 'Build', 'Products', 'Debug-iphonesimulator');
17
15
 
18
- const WDA_BUNDLE_TV = 'WebDriverAgentRunner_tvOS-Runner.app';
19
- const WDA_BUNDLE_TV_PATH = path.join(DERIVED_DATA_PATH, 'Build', 'Products', 'Debug-appletvsimulator');
16
+ const BUNDLE_INFO = {
17
+ runner: {bundle: 'WebDriverAgentRunner-Runner.app', productDir: 'Debug-iphonesimulator'},
18
+ tv_runner: {bundle: 'WebDriverAgentRunner_tvOS-Runner.app', productDir: 'Debug-appletvsimulator'},
19
+ watch_runner: {bundle: 'WebDriverAgentRunner_watchOS-Runner.app', productDir: 'Debug-watchsimulator'},
20
+ };
20
21
 
21
- const TARGETS = ['runner', 'tv_runner'];
22
- const SDKS = ['sim', 'tv_sim'];
22
+ const TARGETS = ['runner', 'tv_runner', 'watch_runner'];
23
+ const SDKS = ['sim', 'tv_sim', 'watch_sim'];
23
24
 
24
25
  /**
25
26
  * Build WebDriverAgent and pack the app bundle into a zip archive.
@@ -61,9 +62,8 @@ async function buildWebDriverAgent(xcodeVersion) {
61
62
  throw e;
62
63
  }
63
64
 
64
- const isTv = target === 'tv_runner';
65
- const bundle = isTv ? WDA_BUNDLE_TV : WDA_BUNDLE;
66
- const bundle_path = isTv ? WDA_BUNDLE_TV_PATH : WDA_BUNDLE_PATH;
65
+ const {bundle, productDir} = BUNDLE_INFO[target];
66
+ const bundle_path = path.join(DERIVED_DATA_PATH, 'Build', 'Products', productDir);
67
67
 
68
68
  const zipName = `WebDriverAgentRunner-Runner-${sdk}-${xcodeVersion}.zip`;
69
69
  LOG.info(`Creating ${zipName} which includes ${bundle}`);
package/Scripts/build.sh CHANGED
@@ -106,8 +106,11 @@ function fastlane_test() {
106
106
  "tv" )
107
107
  FASTLANE_DEVICE="$(echo $TV_MODEL | tr -d "'") ($TV_VERSION)"
108
108
  ;;
109
+ "watch" )
110
+ FASTLANE_DEVICE="$(echo $WATCH_MODEL | tr -d "'") ($WATCH_VERSION)"
111
+ ;;
109
112
  * )
110
- echo "Error: Unknown DEST value '${DEST:-}'. DEST must be one of: iphone, ipad, tv"
113
+ echo "Error: Unknown DEST value '${DEST:-}'. DEST must be one of: iphone, ipad, tv, watch"
111
114
  exit 1
112
115
  ;;
113
116
  esac
@@ -126,5 +129,9 @@ case "$ACTION" in
126
129
  "int_test_1" ) fastlane_test IntegrationTests_1 ;;
127
130
  "int_test_2" ) fastlane_test IntegrationTests_2 ;;
128
131
  "int_test_3" ) fastlane_test IntegrationTests_3 ;;
132
+ "tv_int_test" ) fastlane_test IntegrationTests_tvOS ;;
133
+ # Like the iOS/tvOS integration tests, this launches the app under test in-process via
134
+ # XCUIApplication rather than driving a separately running WDA server over HTTP.
135
+ "watch_int_test" ) fastlane_test IntegrationTests_watchOS ;;
129
136
  *) xcbuild ;;
130
137
  esac