diff --git a/CHANGELOG.md b/CHANGELOG.md index c862368a2..e93f006e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [5.13.3](https://github.com/appium/WebDriverAgent/compare/v5.13.2...v5.13.3) (2023-11-10) + + +### Bug Fixes + +* unrecognized selector sent to instance 0x2829adb20 error in clear ([#809](https://github.com/appium/WebDriverAgent/issues/809)) ([79832bc](https://github.com/appium/WebDriverAgent/commit/79832bc6c69e289091fbbb97aee6a1f1d17ca4c3)) + ## [5.13.2](https://github.com/appium/WebDriverAgent/compare/v5.13.1...v5.13.2) (2023-11-06) diff --git a/WebDriverAgentLib/Categories/XCUIElement+FBTyping.m b/WebDriverAgentLib/Categories/XCUIElement+FBTyping.m index a538be380..54b0d5362 100644 --- a/WebDriverAgentLib/Categories/XCUIElement+FBTyping.m +++ b/WebDriverAgentLib/Categories/XCUIElement+FBTyping.m @@ -143,7 +143,12 @@ - (BOOL)fb_clearTextWithSnapshot:(FBXCElementSnapshotWrapper *)snapshot do { if (retry >= MAX_CLEAR_RETRIES - 1) { // Last chance retry. Tripple-tap the field to select its content - [self tapWithNumberOfTaps:3 numberOfTouches:1]; + + if ([self respondsToSelector:@selector(tapWithNumberOfTaps:numberOfTouches:)]) { + // e.g. tvOS 17 raised unrecognized selector error for XCUIElementTypeSearchField + // while following typeText worked. + [self tapWithNumberOfTaps:3 numberOfTouches:1]; + } return [FBKeyboard typeText:backspaceDeleteSequence error:error]; } diff --git a/package.json b/package.json index 762e03f5e..e59934abe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "appium-webdriveragent", - "version": "5.13.2", + "version": "5.13.3", "description": "Package bundling WebDriverAgent", "main": "./build/index.js", "scripts": {