Python-Selenium selector to improve your Automation
Project description
Pytholenium
pytholenium is a simple but powerful python-selenium selector that allows you to combine selenium with attribute seleccions, combining multiple "wait/get/do" actions in a single line
Getting Started
To install pytholenium using pip just do: pip install pytholenium
Easy usage example
Having the following html:
<button name="my_button" some_attribute="atenas">Click me</button>
<button name="my_button" some_attribute="hares">Click me</button> <!-- You want to click this one -->
<button name="other_button" some_attribute="hares">Click me</button>
Attempting to wait for element to be displayed, then selecting all name="my_button", from that subset selecting some_attribute="hares", finally clicking the element, could be mulitple lines of code.
Using pytholenium you can wait, get, do action, in a single line mixing selections types:
import pytholenium as pl
pl.wait_do (driver=driver, params={"name": "my_button", "some_attribute": "hares"}, action="click")
Documentation
You can find more examples in the our Documentation
License
This project is licensed under the GNU License - see the LICENSE file for details
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytholenium-1.0.0.tar.gz.
File metadata
- Download URL: pytholenium-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80641131d9f20ae132841fbcb63158b52a8708d72a195bce72a55bdb83296a03
|
|
| MD5 |
173051106b491b584671706aaaae7fe2
|
|
| BLAKE2b-256 |
eefb78def56c12ff87ce701b3f0df65692c836175fb64e672d03aceb944501e0
|
File details
Details for the file pytholenium-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pytholenium-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6638ef656400c2ac594b7789249c11d25158b28d64414284cf4e01cfc593b64d
|
|
| MD5 |
66e3aa3e2bf168581088e60632d847bf
|
|
| BLAKE2b-256 |
9d4f227a55368f4fa985a522ecec2e6ed19a5edbf3eed499b964a635178e8c8b
|