Framework to build UI test automation in Page Transactions pattern
Project description
Guará
Guará is a Python framework designed to simplify UI test automation.
Syntax
Application.at(apage.DoSomething [,with_parameter=value, ...]).asserts(it.Matches, a_condition)
Example in Action
from selenium import webdriver
from pages import home, contact, info, setup
from guara.transaction import Application
from guara import it
def test_sample_web_page():
# Initialize the Application with a driver
app = Application(webdriver.Chrome())
# Open the web application
app.at(setup.OpenApp, url="https://anyhost.com/")
# Change language to Portuguese and assert content
app.at(home.ChangeToPortuguese).asserts(it.IsEqualTo, content_in_portuguese)
# Navigate to Info page and assert text presence
app.at(info.NavigateTo).asserts(it.Contains, "This project was born")
# Close the web application
app.at(setup.CloseApp)
For more information, check the documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
guara-0.0.17.tar.gz
(857.9 kB
view details)
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
guara-0.0.17-py3-none-any.whl
(14.4 kB
view details)
File details
Details for the file guara-0.0.17.tar.gz.
File metadata
- Download URL: guara-0.0.17.tar.gz
- Upload date:
- Size: 857.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5973f0a81fb0240123949cfd2f29ad3297dfbdffe488b4e74b21daa6f44c0e0
|
|
| MD5 |
eff5cfb998afde9bedd1ae28c613f4fb
|
|
| BLAKE2b-256 |
dbc40e6b3412f233aef1e435bb42db9f16b22ad6af57a81ec07fccdc3785dee3
|
File details
Details for the file guara-0.0.17-py3-none-any.whl.
File metadata
- Download URL: guara-0.0.17-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5269d07bfe73120c48a3bd01e3d90a932f0517394229710929a918917892916
|
|
| MD5 |
6eb5634bcf3c0f64ad33964342bb0533
|
|
| BLAKE2b-256 |
fa6abc6088d56695ff72820d12272381d9dfbc97f8f0fd97ee09f5ea36c4a402
|