Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unrecognized selector sent to instance 0x2829adb20 error in clear #809

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Nov 10, 2023

When I explored appium/appium#19389, I found out the below command

e = driver.find_element :class_name, 'XCUIElementTypeSearchField'
e.clear

returned

> e.clear
Selenium::WebDriver::Error::UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCUIElement tapWithNumberOfTaps:numberOfTouches:]: unrecognized selector sent to instance 0x2829adb20
from UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCUIElement tapWithNumberOfTaps:numberOfTouches:]: unrecognized selector sent to instance 0x2829adb20

on a tvOS 17 device.

The clear search field worked, so we can simply skip the tapWithNumberOfTaps in case the platform does not have it

@KazuCocoa KazuCocoa changed the title fix: unrecognized selector sent to instance 0x2829adb20 error fix: unrecognized selector sent to instance 0x2829adb20 error in clear Nov 10, 2023
@KazuCocoa KazuCocoa merged commit 79832bc into master Nov 10, 2023
45 checks passed
@KazuCocoa KazuCocoa deleted the fix-selector-error branch November 10, 2023 07:05
github-actions bot pushed a commit that referenced this pull request Nov 10, 2023
## [5.13.3](v5.13.2...v5.13.3) (2023-11-10)

### Bug Fixes

* unrecognized selector sent to instance 0x2829adb20 error in clear ([#809](#809)) ([79832bc](79832bc))
Copy link

🎉 This PR is included in version 5.13.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants