airgun.entities.task
¶
Module Contents¶
Classes¶
Navigate to All Tasks page |
|
Navigate to Task Details screen. |
- class airgun.entities.task.TaskEntity(browser)¶
- endpoint_path = /foreman_tasks/tasks¶
- search(value)¶
Search for specific task
- read_all(widget_names=None)¶
Read all tasks widgets values from the title page. Or read specific widgets by adding ‘widget_names’ parameter
- read(entity_name, widget_names=None)¶
Read specific task values from details page
- set_chart_filter(chart_name, index=None)¶
Remove filter from searchbox and set filter from specific chart
- Parameters
index – index in ‘StoppedChart’ table, dict with ‘row’ number and ‘focus’ as column name
- total_items()¶
Get total items displayed in the table
- class airgun.entities.task.ShowAllTasks(obj, navigate_obj, logger=None)¶
Navigate to All Tasks 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.task.TaskDetails(obj, navigate_obj, logger=None)¶
Navigate to Task Details screen.
- Parameters
entity_name – name of the task
- 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.