Niobium extends the Python Selenium client with nice features
Project description
Niobium
Niobium extends the Python Selenium client with nice features.
Why Niobium
Selenium is a good tool for web automation, but sometimes it's hard to write a clean automation script.
With Niobium, you can keep using Selenium while simplifying your scripts. For example, Niobium adds a new method that uses image recognition to interact with the webpage.
The goal of Niobium is not to replace Selenium. We only want to add to Selenium the functions we will love to see in Selenium natively.
Niobium philosophy is to keep as simple as possible.
Installation
Niobium is available on Pypi, so simply use pip.
pip install niobium
Getting Started
In order to use Niobium, you just need to import it in your script. Selenium will be automatically extended.
import niobium
from selenium import webdriver
driver = webdriver.Firefox()
driver.implicitly_wait(10)
driver.get("https://www.python.org/")
driver.find_image("logo_python.png")
driver.quit()
In order to avoid warning with your linter, you can import selenium from niobium.
from niobium import selenium
driver = selenium.webdriver.Firefox()
...
or simply disable the warning, like in this example for flake8
import niobium # noqa: F401
from selenium import webdriver
driver = webdriver.Firefox()
...
If you use pytest and especially pytest-selenium, just import niobium in your conftest.py.
Documentation
https://niobium.readthedocs.io/
Warnings
Some features implemented in Niobium are here only to help you when there is no other easy solution. If you do a bad usage of Niobium features, it can result to a bad performance in your script, or it will be difficult to maintain it. Please read the documentation in order to know the special warnings for the use of these features.
Niobium do not modify the Selenium library package. The patches are only applied at runtime. This is the reason why the autocompletion is not updated correctly.
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
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 niobium-1.0.0.tar.gz.
File metadata
- Download URL: niobium-1.0.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e60eb9cf71cef7a737bced09445ee3754a4fbda9590673644c32515e09cefd9
|
|
| MD5 |
3c9dff00343c728e5d3fc703870383bb
|
|
| BLAKE2b-256 |
035045abc0006221ac418511099d658d737b24c1f702be0674e0b95b85116ddf
|
Provenance
The following attestation bundles were made for niobium-1.0.0.tar.gz:
Publisher:
build.yml on cle-b/niobium
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
niobium-1.0.0.tar.gz -
Subject digest:
8e60eb9cf71cef7a737bced09445ee3754a4fbda9590673644c32515e09cefd9 - Sigstore transparency entry: 373283405
- Sigstore integration time:
-
Permalink:
cle-b/niobium@b0f9b2c398d6590add4f0a97e6424863912b702e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/cle-b
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@b0f9b2c398d6590add4f0a97e6424863912b702e -
Trigger Event:
push
-
Statement type:
File details
Details for the file niobium-1.0.0-py3-none-any.whl.
File metadata
- Download URL: niobium-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ee0365ace75dcef7fbe331ac1c9217e0ec230f2c07ca0a01d1a702722fb9a84
|
|
| MD5 |
0b4d269fddc5ee0558e6374a9d3b0261
|
|
| BLAKE2b-256 |
cb6d1460479c788d97c8dd9998dcfe3b5776306ded938067dc9f0fa59dc91d52
|
Provenance
The following attestation bundles were made for niobium-1.0.0-py3-none-any.whl:
Publisher:
build.yml on cle-b/niobium
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
niobium-1.0.0-py3-none-any.whl -
Subject digest:
0ee0365ace75dcef7fbe331ac1c9217e0ec230f2c07ca0a01d1a702722fb9a84 - Sigstore transparency entry: 373283446
- Sigstore integration time:
-
Permalink:
cle-b/niobium@b0f9b2c398d6590add4f0a97e6424863912b702e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/cle-b
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@b0f9b2c398d6590add4f0a97e6424863912b702e -
Trigger Event:
push
-
Statement type: