Skip to main content

Python-Selenium selector to improve your Automation

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytholenium-1.0.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pytholenium-1.0.0-py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page