File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,50 @@ class OpenWechat:StepImpl {
108108// 从步骤1开始执行
109109StepManager .beginExecute(OpenWechat ::class .java, 1 )
110110```
111+
112+ ## API
113+ ### UIOperate
114+
115+ * findById
116+ > 根据id查找元素控件,例:
117+
118+ ```
119+ //查找当前页面id为"com.tencent.mm:id/gkp"的界面元素
120+ UIOperate.findById("com.tencent.mm:id/gkp")
121+ ```
122+
123+
124+ * findByTags
125+ > 根据类型查找元素控件,例:
126+
127+ ```
128+ //查找元素child下类型为"android.widget.TextView"的元素
129+ //如child为空则查找当前整个页面元素
130+ UIOperate.findByTags("android.widget.TextView", child)
131+ ```
132+
133+ * findByText
134+ > 根据文本查找元素控件,例:
135+
136+ ```
137+ //查找当前页面文本为"返回"或包含"返回"的界面元素
138+ UIOperate.findByText("返回")
139+ ```
140+ * getAllNodes
141+ > 获取当前页面所有
142+ * getNodes
143+ > 获取指定元素下所有子元素
144+ * findParentClickable
145+ > 查找父类可点击的元素
146+ * clickScreen
147+ > 点击屏幕指定位置
148+ * back
149+ > 返回
150+ * paste
151+ > 粘贴文本到指定元素
152+
153+ 文档持续更新中...
154+
111155## 示例&下载
112156[ ▶ ; 示例视频] ( https://www.youtube.com/embed/kNuw9sUsDKo )
113157
You can’t perform that action at this time.
0 commit comments