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.0.tar.gz (11.3 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.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for niobium-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8e60eb9cf71cef7a737bced09445ee3754a4fbda9590673644c32515e09cefd9
MD5 3c9dff00343c728e5d3fc703870383bb
BLAKE2b-256 035045abc0006221ac418511099d658d737b24c1f702be0674e0b95b85116ddf

See more details on using hashes here.

Provenance

The following attestation bundles were made for niobium-1.0.0.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.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

Hashes for niobium-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ee0365ace75dcef7fbe331ac1c9217e0ec230f2c07ca0a01d1a702722fb9a84
MD5 0b4d269fddc5ee0558e6374a9d3b0261
BLAKE2b-256 cb6d1460479c788d97c8dd9998dcfe3b5776306ded938067dc9f0fa59dc91d52

See more details on using hashes here.

Provenance

The following attestation bundles were made for niobium-1.0.0-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