Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

unicodeKeyboard and resetKeyboard capbilities removed from java-client 9.0.0

未关闭
#2,059 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, java
领域
mobile-dev

调研方向

首先比较 Java client 8.x 和 9.0.0 之间与键盘相关的行为和功能,然后检查 UIAutomator2 和 Espresso 驱动如何处理键盘可见性。使用报告中的 adb 命令作为当前的变通方案,并将完成标准定义为:提供一种受支持的方式来阻止或恢复 Android 键盘,而无需在每次出现后手动将其隐藏。

由索引模型根据 Issue 内容生成。

描述

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"
主要语言
Java
星标
1.3k
派生
755
平均合并
5 天 14 小时
30 天内合并 PR
8

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

appium/java-client 的其他 Issue

查看 appium/java-client 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。