airgun.entities.modulestream

Module Contents

Classes

ModuleStreamEntity

ShowAllModuleStreams

navigate to Module Streams Page

ShowModuleStreamsDetails

Navigate to Module Stream Details page by clicking on

class airgun.entities.modulestream.ModuleStreamEntity(browser)
endpoint_path = /module_streams
search(query)

Search for module stream

Parameters

query (str) – search query to type into search field. E.g. name = "ant".

read(entity_name, stream_version, widget_names=None)

Read module streams values from Module Stream Details page

Parameters
  • entity_name (str) – the module stream name to read.

  • stream_version (str) – stream version of module.

class airgun.entities.modulestream.ShowAllModuleStreams(obj, navigate_obj, logger=None)

navigate to Module Streams 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.modulestream.ShowModuleStreamsDetails(obj, navigate_obj, logger=None)

Navigate to Module Stream Details page by clicking on necessary module name in the table

Parameters
  • entity_name – The module name.

  • module_version – The version of module stream.

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.

post_navigate(_tries, *args, **kwargs)

Describes steps that takes place before any prerequisite after navigation takes place.

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 argument entity_name was passed and view has BreadCrumb 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

bool