appium-webdriveragent 8.9.2 → 8.9.4

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,15 @@
1
+ ## [8.9.4](https://github.com/appium/WebDriverAgent/compare/v8.9.3...v8.9.4) (2024-10-17)
2
+
3
+ ### Bug Fixes
4
+
5
+ * Consider transient overlay windows when respectSystemAlerts is enabled ([#946](https://github.com/appium/WebDriverAgent/issues/946)) ([f0bdce7](https://github.com/appium/WebDriverAgent/commit/f0bdce7eb8fdb13d2309d28e936950c77f006b20))
6
+
7
+ ## [8.9.3](https://github.com/appium/WebDriverAgent/compare/v8.9.2...v8.9.3) (2024-10-07)
8
+
9
+ ### Miscellaneous Chores
10
+
11
+ * remove unused FBBaseActionsParser and cleanup imports in FBConfiguration ([#943](https://github.com/appium/WebDriverAgent/issues/943)) ([a2173d0](https://github.com/appium/WebDriverAgent/commit/a2173d05df8ef831310e805a8e6a8a8d17725201))
12
+
1
13
  ## [8.9.2](https://github.com/appium/WebDriverAgent/compare/v8.9.1...v8.9.2) (2024-09-13)
2
14
 
3
15
  ### Miscellaneous Chores
@@ -28,4 +28,4 @@ RUN_CLANG_STATIC_ANALYZER = YES
28
28
 
29
29
  GCC_PREPROCESSOR_DEFINITIONS = $(inherited)
30
30
 
31
- WARNING_CFLAGS = $(inherited) -Weverything -Wno-objc-missing-property-synthesis -Wno-unused-macros -Wno-disabled-macro-expansion -Wno-gnu-statement-expression -Wno-language-extension-token -Wno-overriding-method-mismatch -Wno-missing-variable-declarations -Rno-module-build -Wno-auto-import -Wno-objc-interface-ivars -Wno-documentation-unknown-command -Wno-reserved-id-macro -Wno-unused-parameter -Wno-gnu-conditional-omitted-operand -Wno-explicit-ownership-type -Wno-date-time -Wno-cast-align -Wno-cstring-format-directive -Wno-double-promotion -Wno-partial-availability
31
+ WARNING_CFLAGS = $(inherited) -Weverything -Wno-objc-missing-property-synthesis -Wno-unused-macros -Wno-disabled-macro-expansion -Wno-gnu-statement-expression -Wno-language-extension-token -Wno-overriding-method-mismatch -Wno-missing-variable-declarations -Rno-module-build -Wno-auto-import -Wno-objc-interface-ivars -Wno-documentation-unknown-command -Wno-reserved-id-macro -Wno-unused-parameter -Wno-gnu-conditional-omitted-operand -Wno-explicit-ownership-type -Wno-date-time -Wno-cast-align -Wno-cstring-format-directive -Wno-double-promotion -Wno-partial-availability -Wno-declaration-after-statement -Wno-objc-messaging-id -Wno-direct-ivar-access -Wno-cast-qual -Wno-deprecated-declarations
@@ -28,4 +28,4 @@ RUN_CLANG_STATIC_ANALYZER = YES
28
28
 
29
29
  GCC_PREPROCESSOR_DEFINITIONS = $(inherited)
30
30
 
31
- WARNING_CFLAGS = $(inherited) -Weverything -Wno-objc-missing-property-synthesis -Wno-unused-macros -Wno-disabled-macro-expansion -Wno-gnu-statement-expression -Wno-language-extension-token -Wno-overriding-method-mismatch -Wno-missing-variable-declarations -Rno-module-build -Wno-auto-import -Wno-objc-interface-ivars -Wno-documentation-unknown-command -Wno-reserved-id-macro -Wno-unused-parameter -Wno-gnu-conditional-omitted-operand -Wno-explicit-ownership-type -Wno-date-time -Wno-cast-align -Wno-cstring-format-directive -Wno-double-promotion -Wno-partial-availability
31
+ WARNING_CFLAGS = $(inherited) -Weverything -Wno-objc-missing-property-synthesis -Wno-unused-macros -Wno-disabled-macro-expansion -Wno-gnu-statement-expression -Wno-language-extension-token -Wno-overriding-method-mismatch -Wno-missing-variable-declarations -Rno-module-build -Wno-auto-import -Wno-objc-interface-ivars -Wno-documentation-unknown-command -Wno-reserved-id-macro -Wno-unused-parameter -Wno-gnu-conditional-omitted-operand -Wno-explicit-ownership-type -Wno-date-time -Wno-cast-align -Wno-cstring-format-directive -Wno-double-promotion -Wno-partial-availability -Wno-declaration-after-statement -Wno-objc-messaging-id -Wno-direct-ivar-access -Wno-cast-qual -Wno-deprecated-declarations
@@ -15,11 +15,11 @@
15
15
  <key>CFBundlePackageType</key>
16
16
  <string>FMWK</string>
17
17
  <key>CFBundleShortVersionString</key>
18
- <string>8.9.2</string>
18
+ <string>8.9.4</string>
19
19
  <key>CFBundleSignature</key>
20
20
  <string>????</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>8.9.2</string>
22
+ <string>8.9.4</string>
23
23
  <key>NSPrincipalClass</key>
24
24
  <string/>
25
25
  </dict>
@@ -178,8 +178,13 @@ static FBSession *_activeSession = nil;
178
178
  if (nil != self.testedApplication) {
179
179
  XCUIApplicationState testedAppState = self.testedApplication.state;
180
180
  if (testedAppState >= XCUIApplicationStateRunningForeground) {
181
+ // We look for `SBTransientOverlayWindow` elements for half modals. See https://github.com/appium/WebDriverAgent/pull/946
182
+ NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"%K == %@ OR %K == %@",
183
+ @"elementType", @(XCUIElementTypeAlert),
184
+ @"identifier", @"SBTransientOverlayWindow"];
181
185
  if ([FBConfiguration shouldRespectSystemAlerts]
182
- && [XCUIApplication.fb_systemApplication descendantsMatchingType:XCUIElementTypeAlert].count > 0) {
186
+ && [[XCUIApplication.fb_systemApplication descendantsMatchingType:XCUIElementTypeAny]
187
+ matchingPredicate:searchPredicate].count > 0) {
183
188
  return XCUIApplication.fb_systemApplication;
184
189
  }
185
190
  return (XCUIApplication *)self.testedApplication;
@@ -9,10 +9,6 @@
9
9
 
10
10
  #import <Foundation/Foundation.h>
11
11
 
12
- #import "AXSettings.h"
13
- #import "UIKeyboardImpl.h"
14
- #import "TIPreferencesController.h"
15
-
16
12
  NS_ASSUME_NONNULL_BEGIN
17
13
 
18
14
  extern NSString *const FBSnapshotMaxDepthKey;
@@ -9,6 +9,10 @@
9
9
 
10
10
  #import "FBConfiguration.h"
11
11
 
12
+ #import "AXSettings.h"
13
+ #import "UIKeyboardImpl.h"
14
+ #import "TIPreferencesController.h"
15
+
12
16
  #include <dlfcn.h>
13
17
  #import <UIKit/UIKit.h>
14
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "8.9.2",
3
+ "version": "8.9.4",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,32 +0,0 @@
1
- /**
2
- * Copyright (c) 2015-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- */
9
-
10
- #import "FBBaseActionsSynthesizer.h"
11
-
12
- #import "FBErrorBuilder.h"
13
-
14
- @implementation FBBaseActionsSynthesizer
15
-
16
- - (instancetype)initWithActions:(NSArray *)actions forApplication:(XCUIApplication *)application
17
- {
18
- self = [super init];
19
- if (self) {
20
- _actions = actions;
21
- _application = application;
22
- }
23
- return self;
24
- }
25
-
26
- - (nullable XCSynthesizedEventRecord *)synthesizeWithError:(NSError **)error
27
- {
28
- @throw [[FBErrorBuilder.builder withDescription:@"Override this method in subclasses"] build];
29
- return nil;
30
- }
31
-
32
- @end