airgun.entities.organization
¶
Module Contents¶
Classes¶
Navigate to All Organizations page |
|
Navigate to Create Organization page |
|
Navigate to Edit Organization page |
|
Select Organization from menu |
- class airgun.entities.organization.OrganizationEntity(browser)¶
- endpoint_path = /organizations¶
- create(values)¶
Create new organization entity
- delete(entity_name)¶
Delete existing organization
- read(entity_name, widget_names=None)¶
Read specific organization details
- search(value)¶
Search for organization entity
- update(entity_name, values)¶
Update necessary values for organization
- select(org_name)¶
Select necessary organization from context menu on the top of the page
- class airgun.entities.organization.ShowAllOrganizations(obj, navigate_obj, logger=None)¶
Navigate to All Organizations page
- VIEW¶
- step(*args, **kwargs)¶
Describes the work to be done to get to the destination after the prequisite is met.
This is a default and is generally overridden.
- class airgun.entities.organization.AddNewOrganization(obj, navigate_obj, logger=None)¶
Navigate to Create Organization page
- VIEW¶
- prerequisite¶
- step(*args, **kwargs)¶
Describes the work to be done to get to the destination after the prequisite is met.
This is a default and is generally overridden.
- class airgun.entities.organization.EditOrganization(obj, navigate_obj, logger=None)¶
Navigate to Edit Organization page
- Parameters
entity_name – name of the organization
- VIEW¶
- prerequisite(*args, **kwargs)¶
Describes a step that must be carried our prior to this one.
This often calls a previous navigate_to, often using one of the helpers, NavigateToSibling which will navigate to a given destination using the same object, or NavigateToAttribute which will navigate to a destination against an object describe by the attribute of the parent object.
This is a default and is generally overridden.
- step(*args, **kwargs)¶
Describes the work to be done to get to the destination after the prequisite is met.
This is a default and is generally overridden.
- class airgun.entities.organization.SelectOrganizationContext(obj, navigate_obj, logger=None)¶
Select Organization from menu
- Parameters
org_name – name of the organization
- VIEW¶
- am_i_here(*args, **kwargs)¶
Describes if the navigation is already at the requested destination.
By default, airgun relies on view’s
is_displayed
property to determine whether navigation succeeded. If positional argumententity_name
was passed and view hasBreadCrumb
widget, it will also ensure second location in breadcrumb is provided entity name.This method may be overridden on specific entity’s NavigateStep level for more complex logic if needed.
- Returns
whether navigator is at requested destination or not.
- Return type
- step(*args, **kwargs)¶
Describes the work to be done to get to the destination after the prequisite is met.
This is a default and is generally overridden.
Handle alert screen if it’s present