博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RobotFramework-Selenium2Library--关键字
阅读量:6342 次
发布时间:2019-06-22

本文共 4243 字,大约阅读时间需要 14 分钟。

Selenium2Library用户关键字

*** Settings ***Library           Selenium2Library*** Keywords ***Checkbox应该不被选择    [Arguments]    ${locator}    Checkbox Should Not Be Selected    ${locator} Frame应该包含文本 [Arguments] ${locator} ${text} ${loglevel}=INFO Frame Should Contain ${locator} ${text} ${loglevel} List应该无选项 [Arguments] ${locator} List Should Have No Selections ${locator} List选项应该是 [Arguments] ${locator} @{items} List Selection Should Be ${locator} @{items} Radio按钮不应该被选择 [Arguments] ${group_name} Radio Button Should Not Be Selected ${group_name} Radio按钮应该被设置成 [Arguments] ${group_name} ${value} Radio Button Should Be Set To ${group_name} ${value} Url应该包含 [Arguments] ${expected} Location Should Contain ${expected} Xpath应该匹配X次 [Arguments] ${xpath} ${expected_xpath_count} ${msg}= ${loglevel}=INFO Xpath Should Match X Times ${xpath} ${expected_xpath_count} ${msg} ${loglevel} checkbox应该被选择 [Arguments] ${locator} checkbox should be selected ${locator} url应该是 [Arguments] ${url} Location Should Be ${url} 下次确认选择取消 Choose Cancel On Next Confirmation 下次确认选择确定 Choose Ok On Next Confirmation 从List中取消选项 [Arguments] ${locator} @{items} Unselect From List ${locator} @{items} 从List选择选项 [Arguments] ${locator} @{items} Select From List ${locator} @{items} 偏移拖拽 [Arguments] ${source} ${xoffset} ${yoffset} Drag And Drop By Offset ${source} ${xoffset} ${yoffset} 元素应该不包含文本 [Arguments] ${locator} ${expected} ${msg}= Element Should Not Contain ${locator} ${expected} ${msg} 元素应该不可用 [Arguments] ${locator} Element Should Be Disabled ${locator} 元素应该不可见 [Arguments] ${locator} ${msg}= Element Should Not Be Visible ${locator} ${msg} 元素应该包含文本 [Arguments] ${locator} ${text} Element Should Contain ${locator} ${text} 元素应该匹配x次 [Arguments] ${locator} ${count} ${msg}= ${loglevel}=INFO Locator Should Match X Times ${locator} ${count} ${msg} ${loglevel} 元素应该可用 [Arguments] ${locator} Element Should Be Enabled ${locator} 元素应该可见 [Arguments] ${locator} Element Should Be Visible ${locator} 元素文本应该是 [Arguments] ${locator} ${expected} ${msg}= Element Text Should Be ${locator} ${expected} ${msg} 全选List元素 [Arguments] ${locator} Select All From List ${locator} 关闭所有浏览器 Close All Browsers 关闭浏览器 Close Browser 关闭窗口 Close Window 切换浏览器 [Arguments] ${index} Switch Browser ${index} 创建Webdriver [Arguments] ${driver_name} ${alias}= ${kwargs}={} Create Webdriver ${driver_name} ${alias} ${kwargs} 删除Cookie [Arguments] ${name} Delete Cookie ${name} 删除所有Cookie Delete All Cookies 删除本地策略 [Arguments] ${strategy_name} Remove Location Strategy ${strategy_name} 刷新页面 Reload Page 双击元素 [Arguments] ${locator} Double Click Element ${locator} 取消选择Checkbox [Arguments] ${locator} Unselect Checkbox ${locator} 取消选择Frame Unselect Frame 回退 Go Back 在图片上按下鼠标左键 [Arguments] ${locator} Mouse Down On Image ${locator} 在连接上按下鼠标左键 [Arguments] ${locator} Mouse Down On Link ${locator} 应该出现警告弹窗 [Arguments] ${text}= Alert Should Be Present ${text} 当前Frame不应该包含 [Arguments] ${text} ${loglvl}=INFO Current Frame Should Not Contain ${text} ${loglvl} 当前Frame包含 [Arguments] ${text} ${loglevel}=INFO Current Frame Contains ${text} ${loglevel} 截屏 [Arguments] @{filename} Capture Page Screenshot @{filename} 打开浏览器 [Arguments] ${url} ${browser}=chrome @{args} Open Browser ${url} ${browser} @{args} 打开菜单 [Arguments] ${locator} Open Context Menu ${locator} 执行js [Arguments] ${code} Execute Javascript ${code} 执行异步js [Arguments] ${code} Execute Async Javascript ${code} 拖拽元素 [Arguments] ${source} ${target} Drag And Drop ${source} ${target} 按下鼠标左键 [Arguments] ${locator} Mouse Down ${locator} 按键 [Arguments] ${locator} ${key} [Documentation] 按键 \ \ text_field \ \ q ... ... 按键 \ \ login_button \ \\13 \ \ #ASCII Code for enter Key Press Key ${locator} ${key} 提交表单 [Arguments] ${locator}= Submit Form ${locator} 文本区值应该是 [Arguments] ${locator} ${expected} ${msg}= Textarea Value Should Be ${locator} ${expected} ${msg} 文本区应该包含 [Arguments] ${locator} ${expected} ${msg}= Textarea Should Contain ${locator} ${expected} ${msg} 文本框值应该是 [Arguments] ${locator} ${expected} ${msg}= Textfield Value Should Be ${locator} ${expected} ${msg} 文本框应该包含 [Arguments] ${locator} ${expected} ${msg}= Textfield Should Contain ${locator} ${expected} ${msg} 最大化 Maximize Browser Window 标题应该是 [Arguments] ${title} Title Should Be $

转载地址:http://jxkla.baihongyu.com/

你可能感兴趣的文章
Adobe驳斥Flash过度耗电论 称HTML5更耗电
查看>>
No!No!No! It's not fashion!
查看>>
艰困之道中学到的经验教训
查看>>
互联网生态建设落地五大挑战——保险科技生态建设 ...
查看>>
进行短视频app开发工作时,可以加入它来保护青少年 ...
查看>>
25G DAC无源高速线缆和25G光模块之间的区别
查看>>
乐乐茶完成近2亿元Pre-A轮融资,祥峰投资领投
查看>>
clickhouse修改时区
查看>>
CSS_定位
查看>>
第二十四章:页面导航(六)
查看>>
IP_VFR-4-FRAG_TABLE_OVERFLOW【cisco设备报错】碎片***
查看>>
Codeforces Round #256 (Div. 2) D. Multiplication Table 【二分】
查看>>
ARM汇编指令格式
查看>>
HDU-2044-一只小蜜蜂
查看>>
HDU-1394-Minimum Inversion Number
查看>>
京东基于Spark的风控系统架构实践和技术细节
查看>>
什么时候使用CountDownLatch
查看>>
C#之MemberwiseClone与Clone
查看>>
Android性能优化之利用Rxlifecycle解决RxJava内存泄漏
查看>>
转: 如何为你的开源项目选择一个合适的开源协议?
查看>>