unicodeKeyboard and resetKeyboard capbilities removed from java-client 9.0.0
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 752
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 8
Description
Description
Hello. How now to hide keybord in Android (UIAutomator2 and Espresso) generally?
Environment
- Java client build version: 9.0.0
- Appium server version: 2.2.1
- Uiautomator2 driver version: 2.32.3
- Espresso driver version: 2.26.10
- Node.js version: 18.18.0
- Mobile platform/version under test: Android/any version
- Emulator: any
Details
The keyboard makes it difficult to check:
- the page as a whole (for example, that certain elements are displayed when the page loads, but at the same time we have an input field on the page and the cursor is automatically placed in this input field and and the keyboard that appears hides the items you need to search);
- individual elements on the page (for example, if we have several input fields , then when you enter into the first field, the keyboard will hide the second input field).
It's terrible to use the method of hiding the keyboard every time it is shown.
At the very least, time is lost hiding the keyboard and debugging tests.
Alternative
To solve this problem temporarily I have to use "adb" commands:
- Get the current active keyboard: adb shell "ime list -s"
- Disable permanently the current keyboard: adb shell "ime disable {IME_KEYBOARD_VALUE}"
- Later on, restore the keyboard: adb shell "ime reset"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the keyboard-related behavior and capabilities between Java client 8.x and 9.0.0, then check how the UIAutomator2 and Espresso drivers handle keyboard visibility. Use the reported adb commands as the current workaround and define done as a supported way to prevent or restore the Android keyboard without manually hiding it after each appearance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100