appium-webdriveragent 8.9.3 → 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,9 @@
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
+
1
7
  ## [8.9.3](https://github.com/appium/WebDriverAgent/compare/v8.9.2...v8.9.3) (2024-10-07)
2
8
 
3
9
  ### Miscellaneous Chores
@@ -15,11 +15,11 @@
15
15
  <key>CFBundlePackageType</key>
16
16
  <string>FMWK</string>
17
17
  <key>CFBundleShortVersionString</key>
18
- <string>8.9.3</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.3</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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "8.9.3",
3
+ "version": "8.9.4",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",