appium-webdriveragent 4.14.0 → 4.15.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [4.15.0](https://github.com/appium/WebDriverAgent/compare/v4.14.0...v4.15.0) (2023-05-04)
2
+
3
+
4
+ ### Features
5
+
6
+ * Make isFocused attribute available for iOS elements ([#692](https://github.com/appium/WebDriverAgent/issues/692)) ([0ec74ce](https://github.com/appium/WebDriverAgent/commit/0ec74ce32c817a5884228ccb2ec31f0a5a4de9c3))
7
+
1
8
  ## [4.14.0](https://github.com/appium/WebDriverAgent/compare/v4.13.2...v4.14.0) (2023-05-02)
2
9
 
3
10
 
@@ -126,9 +126,7 @@ static NSString* const FBUnknownBundleId = @"unknown";
126
126
  info[@"isEnabled"] = [@([wrappedSnapshot isWDEnabled]) stringValue];
127
127
  info[@"isVisible"] = [@([wrappedSnapshot isWDVisible]) stringValue];
128
128
  info[@"isAccessible"] = [@([wrappedSnapshot isWDAccessible]) stringValue];
129
- #if TARGET_OS_TV
130
129
  info[@"isFocused"] = [@([wrappedSnapshot isWDFocused]) stringValue];
131
- #endif
132
130
 
133
131
  if (!recursive) {
134
132
  return info.copy;
@@ -154,12 +154,10 @@
154
154
  return self.fb_isVisible;
155
155
  }
156
156
 
157
- #if TARGET_OS_TV
158
157
  - (BOOL)isWDFocused
159
158
  {
160
159
  return self.hasFocus;
161
160
  }
162
- #endif
163
161
 
164
162
  - (BOOL)isWDAccessible
165
163
  {
@@ -53,10 +53,8 @@ NS_ASSUME_NONNULL_BEGIN
53
53
  /*! Whether element is an accessibility container (contains children of any depth that are accessible) */
54
54
  @property (nonatomic, readonly, getter = isWDAccessibilityContainer) BOOL wdAccessibilityContainer;
55
55
 
56
- #if TARGET_OS_TV
57
56
  /*! Whether element is focused */
58
57
  @property (nonatomic, readonly, getter = isWDFocused) BOOL wdFocused;
59
- #endif
60
58
 
61
59
  /*! Element's index relatively to its parent. Starts from zero */
62
60
  @property (nonatomic, readonly) NSUInteger wdIndex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {