使用vanilla/python编写的简单robotframework关键字库

robojslib的Python项目详细描述


robotjslib

如何使用

使用pip安装:

安装pip并运行:

pip install robojslib
手动安装:

下载robojslib.py并将其放在python脚本文件夹或tests.robot文件夹中。 完成后,通过运行

Library       robotJSlib.py
依赖项:

运行之前,请确保已安装依赖项:

pip install robotframework-seleniumlibrary
pip install robotframework

对于内置库

KeywordargumentsInfo
Check titleNoneChecks driver title to not include "http"
Vanilla clickElement IDUses vanillaJS to trigger a click overan element
Vanilla click by query selectorSelectorUses vanillaJS to trigger a click overan element
Modify url string"arg1, arg2": Url portion to be changed, url portion to be injectedchecks if a url sub-string is available and substitute it with second argument
Vanilla input"arg1, arg2" Element ID, valueVanilla input on a given element with the given text
Vanilla input by query selector"arg1, arg2" selector, valueVanilla input on a given element with the given text
Checkbox controlElement IDIf checkbox is selected it skips, else it clicks it
Insert phone nrElement IDgenerates a phone nr (es: 351xxxxxxx) & inputs the value inside the element
Set responsiveMobile, Tabletsets resolution for responsive testing: Mobile or Tablet
Wait until title containsarg, string be containedChecks title contains a given string
Open new tabarg: "url to be opened"Note: include "http" or "https" in the url to avoid any bug/problem
Check if visible and clickarg: idChecks if an element is displayed and clicks it. Otherwise, it skips.
Check if visible and click by classarg: classChecks if an element by class is displayed and clicks it. Otherwise, it skips.
Check if visible and click by css selectorarg: css selectorChecks if an element by css selector is displayed and clicks it. Otherwise, it skips.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在Eclipse中使用多个调用在一行上打印java   javajackson序列化问题。只有同一实体的第一个对象可以很好地序列化   Java中Deflate函数的等价充气   使用customlitview的java Android actionbar搜索   java“<T>T get()”是什么意思?(它有用吗?)   目标c使用CommonCrypto使用AES256加密,使用OpenSSL或Java解密   java在运行时更新资源文件   fileinputstream在java中访问并将数据写入现有文件   带集群的java Android Mapbox我希望每个功能都有不同的标记图像   java JDK8>JDK10:PKIX路径生成失败:SunCertPathBuilderException:找不到请求目标的有效证书路径   java使用Hk2生成具有指定构造函数参数的实例   为什么这个系统。出来Java中的println()打印到控制台?   java目录和文件名连接不起作用   使用mockito和通配符绘图的java