MCPcopy
hub / github.com/MonsterNone/tmall-miao / input_text

Method input_text

modules/device_adapter.py:140–145  ·  view source on GitHub ↗

输入文本

(self, text)

Source from the content-addressed store, hash-verified

138 self._device.press("home")
139
140 def input_text(self, text):
141 """输入文本"""
142 if self.device_type == 'hmdriver2':
143 self._device.input_text(text)
144 else:
145 self._device.send_keys(text)
146
147 def clear_text(self):
148 """清除文本"""

Callers 3

open_taobao_searchFunction · 0.80
open_jd_searchFunction · 0.80
clear_textMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected