def open_create_obj_modal(obj_type): """Opens create object modal for selected type.""" selenium_utils.open_url(url.dashboard()) obj_modal = dashboard.Dashboard().open_create_obj_modal(obj_type=obj_type) return obj_modal
def create_workflow(workflow): """Creates a workflow `workflow`.""" selenium_utils.open_url(url.dashboard()) dashboard.Dashboard().start_workflow() internal_ui_operations.submit_obj(workflow)
def dashboard_url(self): """Returns dashboard page url.""" return url.dashboard()
def open_create_obj_modal(obj_type): """Opens create object modal for selected type.""" selenium_utils.open_url(url.dashboard()) obj_modal = dashboard.Dashboard().open_create_obj_modal(obj_type=obj_type) return obj_modal
def create_threat(threat): """Creates a threat `threat`.""" selenium_utils.open_url(url.dashboard()) dashboard.Dashboard().open_create_obj_modal(objects.get_singular( objects.THREATS, title=True)) internal_ui_operations.submit_obj(threat)