Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: appium/WebDriverAgent
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.12.1
Choose a base ref
...
head repository: appium/WebDriverAgent
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.12.2
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Oct 29, 2023

  1. chore: return operation error in handleKeyboardInput (#799)

    * fix: when 0 is given
    
    * chore: return explicit unsupported error
    
    * Update FBCustomCommands.m
    KazuCocoa authored Oct 29, 2023

    Verified

    This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    247ace6 View commit details
  2. chore(release): 5.12.2 [skip ci]

    ## [5.12.2](v5.12.1...v5.12.2) (2023-10-29)
    
    ### Miscellaneous Chores
    
    * return operation error in `handleKeyboardInput` ([#799](#799)) ([247ace6](247ace6))
    semantic-release-bot committed Oct 29, 2023
    Copy the full SHA
    2aa2a28 View commit details
Showing with 15 additions and 1 deletion.
  1. +7 −0 CHANGELOG.md
  2. +7 −0 WebDriverAgentLib/Commands/FBCustomCommands.m
  3. +1 −1 package.json
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [5.12.2](https://github.com/appium/WebDriverAgent/compare/v5.12.1...v5.12.2) (2023-10-29)


### Miscellaneous Chores

* return operation error in `handleKeyboardInput` ([#799](https://github.com/appium/WebDriverAgent/issues/799)) ([247ace6](https://github.com/appium/WebDriverAgent/commit/247ace68f373c09054fabc3be088061089946806))

## [5.12.1](https://github.com/appium/WebDriverAgent/compare/v5.12.0...v5.12.1) (2023-10-28)


7 changes: 7 additions & 0 deletions WebDriverAgentLib/Commands/FBCustomCommands.m
Original file line number Diff line number Diff line change
@@ -556,6 +556,13 @@ + (NSString *)timeZone
? [elementCache elementForUUID:(NSString *)request.parameters[@"uuid"]]
: request.session.activeApplication;
id keys = request.arguments[@"keys"];

if (![destination respondsToSelector:@selector(typeKey:modifierFlags:)]) {
NSString *message = @"typeKey API is only supported since Xcode15 and iPadOS 17";
return FBResponseWithStatus([FBCommandStatus unsupportedOperationErrorWithMessage:message
traceback:nil]);
}

if (![keys isKindOfClass:NSArray.class]) {
NSString *message = @"The 'keys' argument must be an array";
return FBResponseWithStatus([FBCommandStatus invalidArgumentErrorWithMessage:message
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appium-webdriveragent",
"version": "5.12.1",
"version": "5.12.2",
"description": "Package bundling WebDriverAgent",
"main": "./build/index.js",
"scripts": {