Skip to main content

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

niobium-1.0.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

niobium-1.0.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file niobium-1.0.1.tar.gz.

File metadata

  • Download URL: niobium-1.0.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for niobium-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0416d64563225802bb8d87874331a503d41caaa78eb093a4885a6c1c15972c06
MD5 7bf2ad6bcb5900d5310e2c9a81e837a2
BLAKE2b-256 34d89d1543fbf0f4d77bfd7ee51759b48cf7b6922806b40a6694831cc219c308

See more details on using hashes here.

Provenance

The following attestation bundles were made for niobium-1.0.1.tar.gz:

Publisher: build.yml on cle-b/niobium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file niobium-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: niobium-1.0.1-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.13.7

File hashes

Hashes for niobium-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1ce9b4cdc78775ad38703298c439d2e4e132a013b430bb7dfdb3af99609f40c
MD5 cd38d5af39ebf41136d18824c1ecc50b
BLAKE2b-256 6b7d4ee02d28a17872b583807a25235f4a07e3190de76da2d0086fa09dcc915f

See more details on using hashes here.

Provenance

The following attestation bundles were made for niobium-1.0.1-py3-none-any.whl:

Publisher: build.yml on cle-b/niobium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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