appium-webdriveragent 16.17.4 → 16.17.6

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [16.17.6](https://github.com/appium/appium-ios/compare/appium-webdriveragent@16.17.5...appium-webdriveragent@16.17.6) (2026-10-27)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **remote-debugger:** connect real-device clients after listeners are attached and release lost services ([#123](https://github.com/appium/appium-ios/issues/123)) ([c2ffd94](https://github.com/appium/appium-ios/commit/c2ffd94ca4c8d2c1952da80a816f9d8ed3188521))
11
+ * **webdriveragent:** allow excluding customActions from the JSON page source ([#114](https://github.com/appium/appium-ios/issues/114)) ([8991115](https://github.com/appium/appium-ios/commit/89911153d5e666023fe675d382305d8203fe80e2))
12
+
13
+
14
+ ## [16.17.5](https://github.com/appium/appium-ios/compare/appium-webdriveragent@16.17.4...appium-webdriveragent@16.17.5) (2026-10-24)
15
+
16
+ **Note:** Version bump only for package appium-webdriveragent
17
+
18
+
19
+
20
+
21
+
6
22
  ## [16.17.4](https://github.com/appium/appium-ios/compare/appium-webdriveragent@16.17.3...appium-webdriveragent@16.17.4) (2026-10-24)
7
23
 
8
24
  ### Bug Fixes
package/README.md CHANGED
@@ -13,7 +13,7 @@ WebDriverAgent is a [WebDriver server](https://w3c.github.io/webdriver/webdriver
13
13
  * Both iOS and tvOS platforms are supported with devices & simulators
14
14
  * Implements most of [WebDriver Spec](https://w3c.github.io/webdriver/webdriver-spec.html)
15
15
  * Implements part of [Mobile JSON Wire Protocol Spec](https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md)
16
- * USB support for devices is implemented via [appium-ios-device](https://github.com/appium/appium-ios-device) library and has zero dependencies on third-party tools.
16
+ * USB support for devices is implemented via the [appium-ios-remotexpc](https://github.com/appium/appium-ios/tree/main/packages/remotexpc) library and has zero dependencies on third-party tools.
17
17
  * Easy development cycle as it can be launched & debugged directly via Xcode
18
18
  * Use [Mac2Driver](https://github.com/appium/appium-mac2-driver) to automate macOS apps
19
19
 
@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
36
36
  - (NSDictionary *)fb_tree;
37
37
 
38
38
  /**
39
- @param excludedAttributes Set of possible attributes to be excluded i.e frame, enabled, visible, accessible, focused. If set to nil or an empty array then no attributes will be excluded from the resulting JSON
39
+ @param excludedAttributes Set of possible attributes to be excluded i.e frame, nativeFrame, enabled, visible, accessible, nativeAccessibilityElement, focused, traits, placeholderValue, minValue, maxValue, customActions. If set to nil or an empty array then no attributes will be excluded from the resulting JSON
40
40
  @return application elements tree in form of nested dictionaries
41
41
  */
42
42
  - (NSDictionary *)fb_tree:(nullable NSSet<NSString *> *) excludedAttributes;
@@ -52,6 +52,7 @@ static NSString* const FBExclusionAttributeNativeFrame = @"nativeFrame";
52
52
  static NSString* const FBExclusionAttributeTraits = @"traits";
53
53
  static NSString* const FBExclusionAttributeMinValue = @"minValue";
54
54
  static NSString* const FBExclusionAttributeMaxValue = @"maxValue";
55
+ static NSString* const FBExclusionAttributeCustomActions = @"customActions";
55
56
 
56
57
  static NSString *FBJsonPrefixedAttributeKey(NSString *key)
57
58
  {
@@ -242,7 +243,6 @@ NSDictionary<NSString *, NSString *> *customExclusionAttributesMap(void) {
242
243
  info[@"value"] = FBValueOrNull(wrappedSnapshot.wdValue);
243
244
  info[@"label"] = FBValueOrNull(wrappedSnapshot.wdLabel);
244
245
  info[@"rect"] = wrappedSnapshot.wdRect;
245
- info[@"customActions"] = FBValueOrNull(wrappedSnapshot.wdCustomActions);
246
246
 
247
247
  NSDictionary<NSString *, NSString *(^)(void)> *attributeBlocks = [self fb_attributeBlockMapForWrappedSnapshot:wrappedSnapshot];
248
248
 
@@ -253,6 +253,7 @@ NSDictionary<NSString *, NSString *> *customExclusionAttributesMap(void) {
253
253
  FBExclusionAttributeTraits,
254
254
  FBExclusionAttributeMinValue,
255
255
  FBExclusionAttributeMaxValue,
256
+ FBExclusionAttributeCustomActions,
256
257
  nil];
257
258
 
258
259
  for (NSString *key in attributeBlocks) {
@@ -315,6 +316,9 @@ NSDictionary<NSString *, NSString *> *customExclusionAttributesMap(void) {
315
316
  },
316
317
  FBExclusionAttributeTraits: ^{
317
318
  return wrappedSnapshot.wdTraits;
319
+ },
320
+ FBExclusionAttributeCustomActions: ^{
321
+ return (NSString *)FBValueOrNull(wrappedSnapshot.wdCustomActions);
318
322
  }
319
323
  } mutableCopy];
320
324
 
@@ -15,11 +15,11 @@
15
15
  <key>CFBundlePackageType</key>
16
16
  <string>FMWK</string>
17
17
  <key>CFBundleShortVersionString</key>
18
- <string>16.17.4</string>
18
+ <string>16.17.6</string>
19
19
  <key>CFBundleSignature</key>
20
20
  <string>????</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>16.17.4</string>
22
+ <string>16.17.6</string>
23
23
  <key>NSPrincipalClass</key>
24
24
  <string/>
25
25
  </dict>
@@ -12,11 +12,37 @@
12
12
  #import "FBFindElementCommands.h"
13
13
  #import "FBTestMacros.h"
14
14
  #import "FBXCodeCompatibility.h"
15
+ #import "XCUIApplication+FBHelpers.h"
15
16
  #import "XCUIElement+FBAccessibility.h"
16
17
  #import "XCUIElement+FBCustomActions.h"
17
18
  #import "XCUIElement+FBIsVisible.h"
18
19
  #import "XCUIElement+FBWebDriverAttributes.h"
19
20
 
21
+ static void FBCountTreeNodes(NSDictionary *tree, NSUInteger *nodesCount, NSUInteger *customActionsCount)
22
+ {
23
+ *nodesCount += 1;
24
+ if (nil != tree[@"customActions"]) {
25
+ *customActionsCount += 1;
26
+ }
27
+ for (NSDictionary *child in tree[@"children"]) {
28
+ FBCountTreeNodes(child, nodesCount, customActionsCount);
29
+ }
30
+ }
31
+
32
+ static NSDictionary *FBFindTreeButton(NSDictionary *tree, NSString *name)
33
+ {
34
+ if ([tree[@"type"] isEqualToString:@"Button"] && [tree[@"name"] isEqual:name]) {
35
+ return tree;
36
+ }
37
+ for (NSDictionary *child in tree[@"children"]) {
38
+ NSDictionary *result = FBFindTreeButton(child, name);
39
+ if (nil != result) {
40
+ return result;
41
+ }
42
+ }
43
+ return nil;
44
+ }
45
+
20
46
  @interface FBElementAttributeTests : FBIntegrationTestCase
21
47
  @end
22
48
 
@@ -270,4 +296,22 @@
270
296
  XCTAssertEqualObjects(customActions, @"Custom Action 1,Custom Action 2");
271
297
  }
272
298
 
299
+ - (void)testCustomActionsInJSONTree
300
+ {
301
+ NSDictionary *tree = self.testedApplication.fb_tree;
302
+ NSUInteger nodesCount = 0;
303
+ NSUInteger customActionsCount = 0;
304
+ FBCountTreeNodes(tree, &nodesCount, &customActionsCount);
305
+ XCTAssertEqual(customActionsCount, nodesCount);
306
+ NSDictionary *button = FBFindTreeButton(tree, @"Button");
307
+ XCTAssertEqualObjects(button[@"customActions"], @"Custom Action 1,Custom Action 2");
308
+
309
+ tree = [self.testedApplication fb_tree:[NSSet setWithObject:@"customActions"]];
310
+ XCTAssertNotNil(FBFindTreeButton(tree, @"Button"));
311
+ nodesCount = 0;
312
+ customActionsCount = 0;
313
+ FBCountTreeNodes(tree, &nodesCount, &customActionsCount);
314
+ XCTAssertEqual(customActionsCount, 0);
315
+ }
316
+
273
317
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "16.17.4",
3
+ "version": "16.17.6",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "keywords": [
6
6
  "Appium",
@@ -69,7 +69,7 @@
69
69
  "teen_process": "^4.2.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@appium/coresim": "^1.13.2",
72
+ "@appium/coresim": "^1.14.0",
73
73
  "@appium/oxc-config": "^1.1.0",
74
74
  "@appium/tsconfig": "^1.2.0",
75
75
  "@appium/types": "^1.0.0-rc.1",
@@ -83,5 +83,5 @@
83
83
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
84
84
  "npm": ">=10"
85
85
  },
86
- "gitHead": "d2e17e0891a6f7258fcb7ebaacdfecc7f410eacc"
86
+ "gitHead": "37208e5fb21602149a2016421c33e0cff239091e"
87
87
  }