使用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第三方库


热门话题
java下载并将位图设置为列表视图   java有用于MyBatis XML sqlmaps的Javadoc样式的文档工具吗?   放置属性文件的位置,以便java命令在类路径中看到它   使用jschexception验证false的java SSH有时会失败   java如何在Android中使用MPAndroidChart定制饼图?   java如何使用R.String初始化字符串。文本   BeanValidation的java上下文相关验证   java反射:通过反射加载的类中的常量变量   安卓 Java使用相同的规则压缩多个字符串   公告命令中的java换行符不工作   带有整数、字符串和项目符号列表的java txt文件(1.)   arraylist Connect四代码(Java)列放置不工作   用于多个报告的java jasper页面编号   java如何消除Nimbus LAF中按钮周围的空间?   安卓 setImageResource内置自定义ArrayAdapter。lang.NullPointerException   java Android将Json转换为ArrayList多级可扩展列表视图   java Eclipse,Web工具平台,导致JSP中找不到元素错误,但一切正常