roboJSlib
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. | ||
| Element value should not be empty | Element ID | Grabs element value and returns a FatalError in case is empty |
Release files for robojslib 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| robojslib-0.3.8.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| robojslib-0.3.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / robojslib-0.3.8.tar.gz
| Download URL | robojslib-0.3.8.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
054fd3d711db3db91a57464918478caf9e18435f3230a2ce0ed30578a502d9c5
|
|
BLAKE2b-256 checksum How to use checksums |
9b709229782c4ded5ab2b0096338191a2ff5e3e2268e9352ec461a1020d28486
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / robojslib-0.3.8-py3-none-any.whl
| Download URL | robojslib-0.3.8-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c126038f495056242ff206eeff357c18ef0478eda3062aaa1b6d6c80def26fe
|
|
BLAKE2b-256 checksum How to use checksums |
b31f1f51e02226c3ea3b39fef1b6c8dd9d26d4d2cb1ce7298988379c3c353921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|