Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
孙圣翔²⁰₂₁ authored and 孙圣翔²⁰₂₁ committed Sep 11, 2024
1 parent b93a165 commit 5900ff0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1271,11 +1271,12 @@ UiAutomator中的超时设置(隐藏方法)
Refs: [Google uiautomator Configurator](https://developer.android.com/reference/android/support/test/uiautomator/Configurator)
### Input method
这种方法通常用于不知道控件的情况下的输入。第一步需要切换输入法,然后发送adb广播命令,具体使用方法如下
这种方法通常用于不知道控件的情况下的输入。
```python
d.send_keys("你好123abcEFG") # adb广播输入
d.send_keys("你好123abcEFG", clear=True) # adb广播输入
# 目前采用从剪贴板粘贴的方式输入
d.send_keys("你好123abcEFG")
d.send_keys("你好123abcEFG", clear=True)
d.clear_text() # 清除输入框所有内容
Expand Down

0 comments on commit 5900ff0

Please sign in to comment.