airgun.views.ansible_variable

Module Contents

Classes

AnsibleVariablesView

Main Ansible Variables view

MatcherTable

Name-Value paired input elements which can be added, edited or removed.

MatcherActions

Interface table has Attribute type column that contains select field and

NewAnsibleVariableView

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
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool

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 in fill() does not change. If it returns a boolean, then on True it modifies the was_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
hidden_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

property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool