Entity

class pytest_splunk_addon_ui_smartx.components.entity.Entity(browser, container, add_btn=None, is_single_page=False)[source]

Bases: pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent

Entity form to add/edit the configuration. The instance of the class expects that the entity is already open. The instance of the class holds all the controls in the entity and provides the generic interaction that can be done with the entity

cancel()[source]
Cancel the entity
return

True if done properly

close()[source]
Close the entity
return

True if done properly

get_error()[source]

Get the error message displayed while saving the configuration

get_warning()[source]

Get the error message displayed while saving the configuration

open()[source]
Open the entity by click on “New” button.
return

True if done properly

save(expect_error: bool = False, expect_warning: bool = False) Union[str, bool][source]

Attempts to save configuration. If error or warning messages are found, return them instead.