appium-webdriveragent 16.13.5 → 16.13.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
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [16.13.6](https://github.com/appium/WebDriverAgent/compare/v16.13.5...v16.13.6) (2026-09-30)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* restore stability wait settings when quiescence throws ([#1281](https://github.com/appium/WebDriverAgent/issues/1281)) ([bcc434c](https://github.com/appium/WebDriverAgent/commit/bcc434c08127c370c0cb05ce1dc9f4cea9f98559))
|
|
6
|
+
|
|
1
7
|
## [16.13.5](https://github.com/appium/WebDriverAgent/compare/v16.13.4...v16.13.5) (2026-09-30)
|
|
2
8
|
|
|
3
9
|
### Performance Improvements
|
|
@@ -141,18 +141,21 @@
|
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
FBConfiguration.sharedInstance
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
144
|
+
XCUIApplication *application = self.application;
|
|
145
|
+
// Recursive synchronization also covers nested stability checks on this thread.
|
|
146
|
+
@synchronized (FBConfiguration.sharedInstance) {
|
|
147
|
+
NSTimeInterval previousTimeout = FBConfiguration.sharedInstance.waitForIdleTimeout;
|
|
148
|
+
BOOL previousQuiescence = application.fb_shouldWaitForQuiescence;
|
|
149
|
+
@try {
|
|
150
|
+
FBConfiguration.sharedInstance.waitForIdleTimeout = timeout;
|
|
151
|
+
application.fb_shouldWaitForQuiescence = YES;
|
|
152
|
+
[[[application applicationImpl] currentProcess]
|
|
153
|
+
fb_waitForQuiescenceIncludingAnimationsIdle:YES];
|
|
154
|
+
} @finally {
|
|
155
|
+
application.fb_shouldWaitForQuiescence = previousQuiescence;
|
|
156
|
+
FBConfiguration.sharedInstance.waitForIdleTimeout = previousTimeout;
|
|
157
|
+
}
|
|
154
158
|
}
|
|
155
|
-
FBConfiguration.sharedInstance.waitForIdleTimeout = previousTimeout;
|
|
156
159
|
}
|
|
157
160
|
|
|
158
161
|
- (void)fb_raiseStaleElementExceptionWithError:(NSError *)error __attribute__((noreturn))
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<key>CFBundlePackageType</key>
|
|
16
16
|
<string>FMWK</string>
|
|
17
17
|
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>16.13.
|
|
18
|
+
<string>16.13.6</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>16.13.
|
|
22
|
+
<string>16.13.6</string>
|
|
23
23
|
<key>NSPrincipalClass</key>
|
|
24
24
|
<string/>
|
|
25
25
|
</dict>
|
|
@@ -12,12 +12,52 @@
|
|
|
12
12
|
#import "FBElement.h"
|
|
13
13
|
#import "XCUIElementDouble.h"
|
|
14
14
|
#import "FBElementUtils.h"
|
|
15
|
+
#import "FBConfiguration.h"
|
|
16
|
+
#import "XCUIElement+FBUtilities.h"
|
|
17
|
+
#import <objc/runtime.h>
|
|
18
|
+
|
|
19
|
+
@interface FBQuiescenceApplicationDouble : NSObject
|
|
20
|
+
@property (nonatomic) BOOL fb_shouldWaitForQuiescence;
|
|
21
|
+
@property (nonatomic) NSTimeInterval observedTimeout;
|
|
22
|
+
@end
|
|
23
|
+
@implementation FBQuiescenceApplicationDouble
|
|
24
|
+
- (id)applicationImpl { return self; }
|
|
25
|
+
- (id)currentProcess { return self; }
|
|
26
|
+
- (void)fb_waitForQuiescenceIncludingAnimationsIdle:(BOOL)includingAnimations
|
|
27
|
+
{
|
|
28
|
+
self.observedTimeout = FBConfiguration.sharedInstance.waitForIdleTimeout;
|
|
29
|
+
@throw [NSException exceptionWithName:@"QuiescenceFailure" reason:@"test" userInfo:nil];
|
|
30
|
+
}
|
|
31
|
+
@end
|
|
15
32
|
|
|
16
33
|
@interface FBElementUtilitiesTests : XCTestCase
|
|
17
34
|
@end
|
|
18
35
|
|
|
19
36
|
@implementation FBElementUtilitiesTests
|
|
20
37
|
|
|
38
|
+
- (void)testStabilityWaitRestoresSettingsAfterAnException
|
|
39
|
+
{
|
|
40
|
+
NSTimeInterval originalTimeout = FBConfiguration.sharedInstance.waitForIdleTimeout;
|
|
41
|
+
FBQuiescenceApplicationDouble *application = [FBQuiescenceApplicationDouble new];
|
|
42
|
+
XCUIElementDouble *element = [XCUIElementDouble new];
|
|
43
|
+
element.application = (id)application;
|
|
44
|
+
SEL selector = @selector(fb_waitUntilStableWithTimeout:);
|
|
45
|
+
#pragma clang diagnostic push
|
|
46
|
+
#pragma clang diagnostic ignored "-Wcast-function-type-strict"
|
|
47
|
+
void (*wait)(id, SEL, NSTimeInterval) = (void (*)(id, SEL, NSTimeInterval))
|
|
48
|
+
class_getMethodImplementation(XCUIElement.class, selector);
|
|
49
|
+
#pragma clang diagnostic pop
|
|
50
|
+
@try {
|
|
51
|
+
FBConfiguration.sharedInstance.waitForIdleTimeout = 17;
|
|
52
|
+
XCTAssertThrowsSpecificNamed(wait(element, selector, 2), NSException, @"QuiescenceFailure");
|
|
53
|
+
XCTAssertEqual(application.observedTimeout, 2);
|
|
54
|
+
XCTAssertFalse(application.fb_shouldWaitForQuiescence);
|
|
55
|
+
XCTAssertEqual(FBConfiguration.sharedInstance.waitForIdleTimeout, 17);
|
|
56
|
+
} @finally {
|
|
57
|
+
FBConfiguration.sharedInstance.waitForIdleTimeout = originalTimeout;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
21
61
|
- (void)testTypesFiltering {
|
|
22
62
|
NSMutableArray *elements = [NSMutableArray new];
|
|
23
63
|
XCUIElementDouble *el1 = [XCUIElementDouble new];
|