airgun.views.ansible_variable
¶
Module Contents¶
Classes¶
Main Ansible Variables view |
|
Name-Value paired input elements which can be added, edited or removed. |
|
Interface table has Attribute type column that contains select field and |
|
View while creating a new Ansible Variable |
- class airgun.views.ansible_variable.AnsibleVariablesView(parent, logger=None, **kwargs)¶
Main Ansible Variables view
- title¶
- new_variable¶
- total_variables¶
- table¶
- pagination¶
- class airgun.views.ansible_variable.MatcherTable(parent, **kwargs)¶
Name-Value paired input elements which can be added, edited or removed.
It is essentially a table with text input widgets on each row, with an “Add New Parameter” button on the same page.
Example html representation:
<table class="table" id="global_parameters_table"> <tr class="fields " id="new_os_parameter_row"> <input placeholder="Name" type="text" ... id="..._name"> <textarea id="new_os_parameter_value" placeholder="Value" ...>
Locator example:
//input[@placeholder='Name'] //textarea[@placeholder='Value']
- add_new_value¶
- class airgun.views.ansible_variable.MatcherActions(parent, logger=None, **kwargs)¶
Interface table has Attribute type column that contains select field and text input field.
- matcher_key¶
- matcher_value¶
- class airgun.views.ansible_variable.NewAnsibleVariableView(parent, logger=None, **kwargs)¶
View while creating a new Ansible Variable
- class matcher_section(parent, logger=None, **kwargs)¶
‘Specify Matchers’ section
- add_matcher¶
- params¶
- before_fill(values)¶
A hook invoked before the loop of filling is invoked.
If it returns None, the
was_changed
infill()
does not change. If it returns a boolean, then onTrue
it modifies thewas_changed
to True as well.- Parameters
values – The same values that are passed to
fill()
- breadcrumb¶
- key¶
- description¶
- ansible_role¶
- override¶
- parameter_type¶
- default_value¶
- expand_optional_input_validator¶
- required¶
- validator_type¶
- validator_rule¶
- attribute_order¶
- merge_overrides¶
- merge_default¶
- avoid_duplicates¶
- submit¶
- cancel¶
- property expand_button¶
Return the Optional Input Validator section expander element
- property expanded¶
Check whether this section is expanded
- expand()¶
Expand the Optional Input Validator section