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

feat: use khidusage_keyboardclear to clear for iOS/iPad as the 1st attempt, tune tvOS #811

Merged
merged 9 commits into from
Nov 10, 2023

Conversation

KazuCocoa
Copy link
Member

appium/appium#19389

Based on #810

for iOS/iPad -> 1st attempt is via khidusage_keyboardclear, if this works, it is the fastest in my observation. The next is typeText then tapWithNumberOfTaps

tvOS -> typeText:backspacesToType then typeText:backspaceDeleteSequence

In tvOS's default search field had text, it was not placeholder. So it would be nice to minimize the retrial.

@KazuCocoa KazuCocoa changed the title feat: use khidusage_keyboardclear to clear for iOS/iPad as the 1st attempt feat: use khidusage_keyboardclear to clear for iOS/iPad as the 1st attempt, tune tvOS Nov 10, 2023
if (![FBKeyboard typeText:textToType error:error]) {

if (retry == 0) {
// 1st attempt is via the IOHIDEvent as a fastest operation

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as the fastest operation

@KazuCocoa KazuCocoa merged commit dd093ea into master Nov 10, 2023
5 of 11 checks passed
@KazuCocoa KazuCocoa deleted the type_ios2 branch November 10, 2023 22:51
github-actions bot pushed a commit that referenced this pull request Nov 10, 2023
## [5.14.0](v5.13.3...v5.14.0) (2023-11-10)

### Features

* use khidusage_keyboardclear to `clear` for iOS/iPad as the 1st attempt, tune tvOS ([#811](#811)) ([dd093ea](dd093ea))
Copy link

🎉 This PR is included in version 5.14.0 🎉

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