A simple RobotFramework keyword library written using Vanilla/Python
Project description
robotJSlib
How to use
Install with PIP:
Install pip and run:
pip install robojslib
Manual installation:
download roboJSlib.py and place it on your Python scripts folder or inside your tests.robot folder. Once done, import in robotframework by running
Library robotJSlib.py
Dependencies:
Before running, be sure to have installed the dependencies:
pip install robotframework-seleniumlibrary
pip install robotframework
for BuiltIn lib
Keyword | arguments | Info | ||
---|---|---|---|---|
Check title | None | Checks driver title to not include "http" | ||
Vanilla click | Element ID | Uses vanillaJS to trigger a click overan element | ||
Vanilla click by query selector | Selector | Uses vanillaJS to trigger a click overan element | ||
Modify url string | "arg1, arg2": Url portion to be changed, url portion to be injected | checks if a url sub-string is available and substitute it with second argument | ||
Vanilla input | "arg1, arg2" Element ID, value | Vanilla input on a given element with the given text | ||
Vanilla input by query selector | "arg1, arg2" selector, value | Vanilla input on a given element with the given text | ||
Checkbox control | Element ID | If checkbox is selected it skips, else it clicks it | ||
Insert phone nr | Element ID | generates a phone nr (es: 351xxxxxxx) & inputs the value inside the element | ||
Set responsive | Mobile, Tablet | sets resolution for responsive testing: Mobile or Tablet | ||
Wait until title contains | arg, string be contained | Checks title contains a given string | ||
Open new tab | arg: "url to be opened" | Note: include "http" or "https" in the url to avoid any bug/problem | ||
Check if visible and click | arg: id | Checks if an element is displayed and clicks it. Otherwise, it skips. | ||
Check if visible and click by class | arg: class | Checks if an element by class is displayed and clicks it. Otherwise, it skips. | ||
Check if visible and click by css selector | arg: css selector | Checks if an element by css selector is displayed and clicks it. Otherwise, it skips. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
robojslib-0.3.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for robojslib-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ab7c49aebe94eb0a2fd89ac99dff0941453ada86887be96a2b985e87ae9cf40 |
|
MD5 | 623202d76035888210be83c33dd6685d |
|
BLAKE2b-256 | 6fe877cfc00103393682648512b7e3d3fa014859c9cf501f53d5cd2292c0b5f3 |