Skip to main content

A simple navigation framework

Project description

Introduction

Simple navigation framework supporting complex designs

Usage

An example is below

from navmazing import Navigate, NavigateStep, NavigateToSibling

navigate = Navigate()

class Provider(object):
    def __init__(self, name):
        self.name = name


@navigate.register(Provider, 'New')
class AddANewProvider(NavigateStep)
    prerequisite = NavigateToSibling('All')

    def step(self):
        click('Add New Button')

@navigate.register(Provider, 'All')
class ShowAllProviders(NavigateStep)
    def am_i_here(self):
        return check_if_i_am_already_on_page()

    def step(self):
        click('All button')

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

navmazing-0.0.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Supported by

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