dg-ignition-selenium
Automation library for Ignition Perspective, built on Inductive Automation's ignition-automation-tools. This package provides tools for automated testing of Perspective Sessions, including interactions with components, pages, and specialized helpers for Selenium integration.
Note: This package is not supported by Inductive Automation’s support plan. For questions, refer to the Inductive Automation forums.
Features
- Near 1:1 collection of Perspective components for automated testing (excluding pure SVG components and certain third-party libraries).
- Helpers for Selenium interactions, standardized assertions, and Perspective page handling.
- Support for navigating Perspective as a Single Page Application, avoiding direct HTTP requests.
Requirements
- Python >= 3.8
selenium>= 4.0.0- WebDriver (e.g., ChromeDriver, managed via
webdriver-managerfor convenience)
Installation
Install from PyPI
Once published, install the package using pip:
pip install dg-ignition-selenium
Setting Up Local PyPI Authentication
To authenticate with PyPI for private or test uploads (e.g., to TestPyPI), configure your PyPI credentials locally. Follow these steps:
Option 1: Using ~/.pypirc
-
Create or edit the
~/.pypircfile in your home directory. -
Add the following configuration, replacing
<your-pypi-api-token>with your PyPI API token (obtained from PyPI Account Settings):[distutils] index-servers = pypi testpypi [pypi] username = __token__ password = <your-pypi-api-token> [testpypi] repository = https://test.pypi.org/legacy/ username = __token__ password = <your-testpypi-api-token>
-
Secure the file permissions (on Unix-like systems):
chmod 600 ~/.pypirc
Option 2: Using Environment Variables
Alternatively, set environment variables for temporary or CI/CD use:
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=<your-pypi-api-token>
For TestPyPI, also set the repository URL:
export TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/
Verify Installation
After installation, verify the package:
pip show dg-ignition-selenium
Test importing:
python -c "import ignition_automation_tools; print(ignition_automation_tools.__version__)"
This should output the installed version (e.g., 0.1.2).
Local Build Steps
To build the package locally for testing or manual uploads:
-
Clone the Repository:
git clone https://github.com/design-group/dg-ignition-selenium.git cd dg-ignition-selenium
-
Initialize Submodules:
The package depends on the
ignition-automation-toolssubmodule:git submodule update --init --recursive
-
Install Build Dependencies:
pip install build twine
-
Create
__init__.pyFiles:Run the script to generate
__init__.pyfiles for the submodule:chmod +x scripts/create-init-files.sh ./scripts/create-init-files.sh
-
Build the Package:
python -m build
This creates
dist/dg_ignition_selenium-<version>-py3-none-any.whlanddist/dg_ignition_selenium-<version>.tar.gz. -
Verify the Build:
twine check dist/*
-
Install Locally (Optional):
pip install dist/dg_ignition_selenium-<version>-py3-none-any.whl
-
Upload to TestPyPI (Optional):
If you’ve set up
~/.pypircor environment variables:twine upload --repository testpypi dist/*
Install from TestPyPI to test:
pip install --index-url https://test.pypi.org/simple/ dg-ignition-selenium
Usage
from ignition_automation_tools.Components.PerspectiveComponents.Displays.Table import Table
from ignition_automation_tools import PerspectivePageObject
# Example: Initialize a Perspective page
page = PerspectivePageObject(driver=your_selenium_driver, path="/project-name/path/to/page")
page.wait_on_page_load()
# Interact with a Table component
table = Table(page, "table_component_id")
table.set_value("new_value")
For detailed usage, refer to the ignition-automation-tools documentation.
Contributing
Contributions are welcome! Please:
- Fork the repository.
- Create a feature branch (
git checkout -b feature/your-feature). - Commit changes (
git commit -m "Add your feature"). - Push to the branch (
git push origin feature/your-feature). - Open a pull request.
Report issues at GitHub Issues.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For questions, contact keith.gamble@bwdesigngroup.com.
Metadata
Release files for dg-ignition-selenium 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dg_ignition_selenium-0.1.4.tar.gz | 242.3 kB | Without provenance | Details for dg_ignition_selenium-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dg_ignition_selenium-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for dg_ignition_selenium-0.1.4-py3-none-any.whl |
Total release size: 565.9 kB
Release files / dg_ignition_selenium-0.1.4.tar.gz
| Download URL | dg_ignition_selenium-0.1.4.tar.gz |
|---|---|
| Size | 242.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fee8837bf923c7d4382c3be569d8757ee5f9bd7afe72bd453bff28ff5a74efc
|
|
BLAKE2b-256 checksum How to use checksums |
09af7b18a2d75688b89058d2713946ca17882d8b3dbda86d874644c6652c17ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / dg_ignition_selenium-0.1.4-py3-none-any.whl
| Download URL | dg_ignition_selenium-0.1.4-py3-none-any.whl |
|---|---|
| Size | 323.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccf54595797710bd603d0804b41b3d7e2d96fed4796de898b80e1a14ff853c72
|
|
BLAKE2b-256 checksum How to use checksums |
f1b0626eb4266bf585ba5061e0be8a7c1e28fa8ca962c98dbdb019e0e34ada44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Security for dg-ignition-selenium 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.