airgun.entities.package
¶
Module Contents¶
Classes¶
navigate to Packages Page |
|
Navigate to Package Details page by clicking on necessary package name |
- class airgun.entities.package.PackageEntity(browser)¶
- endpoint_path = /packages¶
- search(query, repository='All Repositories', applicable=False, upgradable=False)¶
Search for package in the indicated repository
- class airgun.entities.package.ShowAllPackages(obj, navigate_obj, logger=None)¶
navigate to Packages 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.package.ShowPackageDetails(obj, navigate_obj, logger=None)¶
Navigate to Package Details page by clicking on necessary package name in the table
- Parameters
entity_name – The package name.
repository – The package repository name.
- 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.
- 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