appium-webdriveragent 5.12.0 → 5.12.2
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,17 @@
|
|
|
1
|
+
## [5.12.2](https://github.com/appium/WebDriverAgent/compare/v5.12.1...v5.12.2) (2023-10-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Miscellaneous Chores
|
|
5
|
+
|
|
6
|
+
* return operation error in `handleKeyboardInput` ([#799](https://github.com/appium/WebDriverAgent/issues/799)) ([247ace6](https://github.com/appium/WebDriverAgent/commit/247ace68f373c09054fabc3be088061089946806))
|
|
7
|
+
|
|
8
|
+
## [5.12.1](https://github.com/appium/WebDriverAgent/compare/v5.12.0...v5.12.1) (2023-10-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* when 0 is given for handleKeyboardInput ([#798](https://github.com/appium/WebDriverAgent/issues/798)) ([58ebe8e](https://github.com/appium/WebDriverAgent/commit/58ebe8eb52966963ee30a5c066beb3bf9fed3161))
|
|
14
|
+
|
|
1
15
|
## [5.12.0](https://github.com/appium/WebDriverAgent/compare/v5.11.7...v5.12.0) (2023-10-26)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -551,11 +551,18 @@
|
|
|
551
551
|
+ (id<FBResponsePayload>)handleKeyboardInput:(FBRouteRequest *)request
|
|
552
552
|
{
|
|
553
553
|
FBElementCache *elementCache = request.session.elementCache;
|
|
554
|
-
BOOL hasElement =
|
|
554
|
+
BOOL hasElement = ![request.parameters[@"uuid"] isEqual:@"0"];
|
|
555
555
|
XCUIElement *destination = hasElement
|
|
556
556
|
? [elementCache elementForUUID:(NSString *)request.parameters[@"uuid"]]
|
|
557
557
|
: request.session.activeApplication;
|
|
558
558
|
id keys = request.arguments[@"keys"];
|
|
559
|
+
|
|
560
|
+
if (![destination respondsToSelector:@selector(typeKey:modifierFlags:)]) {
|
|
561
|
+
NSString *message = @"typeKey API is only supported since Xcode15 and iPadOS 17";
|
|
562
|
+
return FBResponseWithStatus([FBCommandStatus unsupportedOperationErrorWithMessage:message
|
|
563
|
+
traceback:nil]);
|
|
564
|
+
}
|
|
565
|
+
|
|
559
566
|
if (![keys isKindOfClass:NSArray.class]) {
|
|
560
567
|
NSString *message = @"The 'keys' argument must be an array";
|
|
561
568
|
return FBResponseWithStatus([FBCommandStatus invalidArgumentErrorWithMessage:message
|