def METHOD_NAME(self, upload_index=0, text="Delete failed"):
    el = self.selenium.find_element(
        By.CSS_SELECTOR, f".dff-file-id-{upload_index}.dff-upload-success"
    )
    el.find_element(By.XPATH, f"//*[contains(text(), '{text}')]")