appium-webdriveragent 4.1.4 → 4.1.7
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/PrivateHeaders/XCTest/XCTestManager_ManagerInterface-Protocol.h +4 -2
- package/PrivateHeaders/XCTest/XCUIScreen.h +4 -3
- package/README.md +0 -1
- package/WebDriverAgentLib/Utilities/FBMjpegServer.m +1 -1
- package/WebDriverAgentLib/Utilities/FBScreenshot.h +1 -1
- package/WebDriverAgentLib/Utilities/FBScreenshot.m +3 -3
- package/WebDriverAgentLib/Utilities/FBW3CActionsSynthesizer.m +1 -15
- package/WebDriverAgentRunner-Runner.app.zip +0 -0
- package/package.json +1 -1
|
@@ -42,8 +42,10 @@
|
|
|
42
42
|
- (void)_XCT_exchangeProtocolVersion:(unsigned long long)arg1 reply:(void (^)(unsigned long long))arg2;
|
|
43
43
|
|
|
44
44
|
// Available since Xcode9
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
// The first screenID type changed from "unsigned int" to "long long" since Xcode 13.3 in XCTAutomationSupport.framework/XCTScreenshotRequest.h
|
|
46
|
+
// but this place is still "unsigned int" in the header. Appium/WDA changes to "long long" for Xcode 13.3 x iOS 15.4 environment.
|
|
47
|
+
- (void)_XCT_requestScreenshotOfScreenWithID:(long long)arg1 withRect:(struct CGRect)arg2 uti:(NSString *)arg3 compressionQuality:(double)arg4 withReply:(void (^)(NSData *, NSError *))arg5;
|
|
48
|
+
- (void)_XCT_requestScreenshotOfScreenWithID:(long long)arg1 withRect:(struct CGRect)arg2 withReply:(void (^)(NSData *, NSError *))arg3;
|
|
47
49
|
- (void)_XCT_requestSnapshotForElement:(XCAccessibilityElement *)arg1 attributes:(NSArray *)arg2 parameters:(NSDictionary *)arg3 reply:(void (^)(XCElementSnapshot *, NSError *))arg4;
|
|
48
50
|
|
|
49
51
|
// Available since Xcode 12.5. Required (!!!) to use since Xcode 13
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
@interface XCUIScreen()
|
|
8
8
|
{
|
|
9
9
|
_Bool _isMainScreen;
|
|
10
|
-
|
|
10
|
+
long long _displayID;
|
|
11
11
|
}
|
|
12
12
|
@property(readonly) _Bool isMainScreen; // @synthesize isMainScreen=_isMainScreen;
|
|
13
|
-
@property(readonly)
|
|
13
|
+
@property(readonly) long long displayID; // @synthesize displayID=_displayID;
|
|
14
14
|
|
|
15
15
|
- (id)_clippedScreenshotData:(id)arg1 quality:(long long)arg2 rect:(struct CGRect)arg3 scale:(double)arg4;
|
|
16
16
|
- (id)_screenshotDataForQuality:(long long)arg1 rect:(struct CGRect)arg2 error:(id *)arg3;
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
- (id)screenshot;
|
|
21
21
|
- (id)_imageFromData:(id)arg1;
|
|
22
22
|
- (double)scale;
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
- (id)initWithDisplayID:(long long)arg1 isMainScreen:(_Bool)arg2 device:(id)arg3 screenDataSource:(id)arg4;
|
|
24
25
|
|
|
25
26
|
@end
|
|
26
27
|
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ static const char *QUEUE_NAME = "JPEG Screenshots Provider Queue";
|
|
|
33
33
|
@property (nonatomic, readonly) NSMutableArray<GCDAsyncSocket *> *listeningClients;
|
|
34
34
|
@property (nonatomic, readonly) mach_timebase_info_data_t timebaseInfo;
|
|
35
35
|
@property (nonatomic, readonly) FBImageIOScaler *imageScaler;
|
|
36
|
-
@property (nonatomic, readonly)
|
|
36
|
+
@property (nonatomic, readonly) long long mainScreenID;
|
|
37
37
|
|
|
38
38
|
@end
|
|
39
39
|
|
|
@@ -51,7 +51,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
51
51
|
@param error If there is an error, upon return contains an NSError object that describes the problem.
|
|
52
52
|
@return Device screenshot as PNG- or JPG-encoded data or nil in case of failure
|
|
53
53
|
*/
|
|
54
|
-
+ (nullable NSData *)takeInOriginalResolutionWithScreenID:(
|
|
54
|
+
+ (nullable NSData *)takeInOriginalResolutionWithScreenID:(long long)screenID
|
|
55
55
|
compressionQuality:(CGFloat)compressionQuality
|
|
56
56
|
uti:(NSString *)uti
|
|
57
57
|
timeout:(NSTimeInterval)timeout
|
|
@@ -123,7 +123,7 @@ NSString *formatTimeInterval(NSTimeInterval interval) {
|
|
|
123
123
|
return screenshotData;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
+ (NSData *)takeWithScreenID:(
|
|
126
|
+
+ (NSData *)takeWithScreenID:(long long)screenID
|
|
127
127
|
scale:(CGFloat)scale
|
|
128
128
|
compressionQuality:(CGFloat)compressionQuality
|
|
129
129
|
rect:(CGRect)rect
|
|
@@ -146,7 +146,7 @@ NSString *formatTimeInterval(NSTimeInterval interval) {
|
|
|
146
146
|
error:error];
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
+ (NSData *)takeInOriginalResolutionWithScreenID:(
|
|
149
|
+
+ (NSData *)takeInOriginalResolutionWithScreenID:(long long)screenID
|
|
150
150
|
compressionQuality:(CGFloat)compressionQuality
|
|
151
151
|
uti:(NSString *)uti
|
|
152
152
|
timeout:(NSTimeInterval)timeout
|
|
@@ -254,7 +254,7 @@ NSString *formatTimeInterval(NSTimeInterval interval) {
|
|
|
254
254
|
return imageEncoding;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
+ (nullable id)screenshotRequestWithScreenID:(
|
|
257
|
+
+ (nullable id)screenshotRequestWithScreenID:(long long)screenID
|
|
258
258
|
rect:(struct CGRect)rect
|
|
259
259
|
uti:(NSString *)uti
|
|
260
260
|
compressionQuality:(CGFloat)compressionQuality
|
|
@@ -317,21 +317,7 @@ static NSString *const FB_KEY_ACTIONS = @"actions";
|
|
|
317
317
|
currentItemIndex:(NSUInteger)currentItemIndex
|
|
318
318
|
error:(NSError **)error
|
|
319
319
|
{
|
|
320
|
-
|
|
321
|
-
if (0 == currentItemIndex) {
|
|
322
|
-
return @[];
|
|
323
|
-
}
|
|
324
|
-
FBBaseGestureItem *preceedingItem = [allItems objectAtIndex:currentItemIndex - 1];
|
|
325
|
-
if (![preceedingItem isKindOfClass:FBPointerUpItem.class] && currentItemIndex < allItems.count - 1) {
|
|
326
|
-
return @[];
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
NSTimeInterval currentOffset = FBMillisToSeconds(self.offset + self.duration);
|
|
330
|
-
XCPointerEventPath *result = [[XCPointerEventPath alloc] initForTouchAtPoint:self.atPosition offset:currentOffset];
|
|
331
|
-
if (currentItemIndex == allItems.count - 1) {
|
|
332
|
-
[result liftUpAtOffset:currentOffset];
|
|
333
|
-
}
|
|
334
|
-
return @[result];
|
|
320
|
+
return @[];
|
|
335
321
|
}
|
|
336
322
|
|
|
337
323
|
@end
|
|
Binary file
|