Skip to content

douglasdcm/guara

Repository files navigation

Guará

PyPI Downloads

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

About

Python implementation of the Page Transactions pattern for UI test automation.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages