airgun.helpers.base¶
Module Contents¶
-
class
airgun.helpers.base.BaseEntityHelper(: BaseEntity, entity)¶ -
entity¶
-
read_filled_view(self: str, navigation_name: Dict, navigation_kwargs: Dict[str, Any] = None, values: List[str] = None, read_widget_names=None)¶ Navigate to a form using ‘navigation_name’ and with parameters from ‘navigation_kwargs’, fill the form with values and then read values for widgets from ‘read_widget_names’ list if supplied otherwise read all widgets values.
Example usage:
# In host entity: open create view, click host.reset_puppet_environment button and read # host.puppet_environment session.host.helper.read_filled_view( 'New', values={'host.reset_puppet_environment': True}, read_widget_names=['host.puppet_environment'] )
-