Skip to main content

Pytholenium

Build Status GitHub Coverage Status

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

Release files for pytholenium 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytholenium 1.0.0
File Size Uploaded
pytholenium-1.0.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytholenium 1.0.0
File Interpreter ABI Platform
pytholenium-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.4 kB

Release files / pytholenium-1.0.0.tar.gz

Download URL pytholenium-1.0.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
80641131d9f20ae132841fbcb63158b52a8708d72a195bce72a55bdb83296a03
BLAKE2b-256 checksum
How to use checksums
eefb78def56c12ff87ce701b3f0df65692c836175fb64e672d03aceb944501e0
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pytholenium-1.0.0-py3-none-any.whl

Download URL pytholenium-1.0.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6638ef656400c2ac594b7789249c11d25158b28d64414284cf4e01cfc593b64d
BLAKE2b-256 checksum
How to use checksums
9d4f227a55368f4fa985a522ecec2e6ed19a5edbf3eed499b964a635178e8c8b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page