airgun.views.hardware_model

Module Contents

Classes

DeleteHardwareModelDialog

Usual confirmation dialog with two buttons and close 'x' button in the

HardwareModelsView

Base view for Satellite pages

HardwareModelCreateView

Base view for Satellite pages

HardwareModelEditView

Base view for Satellite pages

class airgun.views.hardware_model.DeleteHardwareModelDialog(parent, logger=None, **kwargs)

Usual confirmation dialog with two buttons and close ‘x’ button in the right corner. Has nothing in common with javascript alert, confirm or prompt pop-ups.

Example html representation:

<div class="modal-content">
    <button type="button" class="close" ... ng-click="cancel()">
    <div class="modal-footer ng-scope">
        <button class="btn btn-danger" ng-click="ok()">
        <button class="btn ..." ng-click="cancel()"...>

Locator example:

//div[@class='modal-content']
confirm_dialog
cancel_dialog
class airgun.views.hardware_model.HardwareModelsView(parent, logger=None, **kwargs)

Base view for Satellite pages

delete_dialog
title
new
table
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.hardware_model.HardwareModelCreateView(parent, logger=None, **kwargs)

Base view for Satellite pages

breadcrumb
name
hardware_model
vendor_class
info
submit
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.hardware_model.HardwareModelEditView(parent, logger=None, **kwargs)

Base view for Satellite pages

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