RobotFramework中AppiumLibrary常用关键字

编程入门 行业动态 更新时间:2024-10-25 23:35:34

1、启动/关闭app

启动app:open Application

关闭app:Close Application

关闭所有应用:Close All Applications

卸载应用:Remove Application

2、元素相关

点击元素:Click Elemen

点击文字:Click Text

等待页面元素出现:Wait Until Page Contains Element

等待页面出现文本:Wait Until Page Contains

等待页面不包含元素:Wait Until Page Does Not Contain Element

等待页面不包含文本:Wait Until Page Does Not Contain

3、页面滑动

滑动:swipe ${start_x} ${start_y} ${end_x} ${end_y}

滚动:Scroll ${start_locator} ${end_locator}

4、睡眠

睡眠:sleep

5、隐藏键盘

隐藏键盘:Hide Keyboard

 

 

 

其他:

RF变量定义:

${}定义常规变量,var

@{}定义list变量,集合

&{}定义字典变量,dictionary key|value对应关系的键值对 类似java的HashMap

${handles}数组 set variable

@{handles}集合 create list

&{dictionary}字典键值对 create dictionary

 

更多推荐

关键字,常用,RobotFramework,AppiumLibrary

本文发布于:2023-05-31 10:06:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/389586.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:关键字   常用   RobotFramework   AppiumLibrary

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!