def delete(self, *roles):
        """Delete one or more Deployment Role from list of Deployment Roles

        Args:
            One or Multiple 'cfme.infrastructure.deployment_role.DeploymentRoles' objects
        """

        view = navigate_to(self, 'All')

        if view.entities.get_all(surf_pages=True) and roles:
            for role in roles:
                try:
                    view.entities.get_entity(name=role.name).check()
                except ItemNotFound:
                    raise RoleNotFound("Deployment role {} not found".format(
                        role.name))

            view.toolbar.configuration.item_select('Remove selected items',
                                                   handle_alert=True)

            assert view.is_displayed
            flash_msg = (
                "Delete initiated for {} Clusters / Deployment Roles from the CFME "
                "Database".format(len(roles)))
            view.flash.assert_success_message(flash_msg)
        else:
            raise RoleNotFound('No Deployment Role for Deletion')
 def step(self):
     try:
         self.prerequisite_view.entities.get_entity(
             name=self.obj.name).click()
     except ItemNotFound:
         raise RoleNotFound("Deployment Role {} not found".format(
             self.obj.name))
 def step(self, *args, **kwargs):
     """Navigate to the details page of Role"""
     try:
         self.prerequisite_view.entities.get_entity(name=self.obj.name,
                                                    surf_pages=True).click()
     except ItemNotFound:
         raise RoleNotFound("Deployment Role {} not found".format(self.obj.name))