def METHOD_NAME(self) -> WebElement:
    """Get the error toast message after an invalid labware definition is uploaded."""
    header: Element = Element(
        (
            By.XPATH,
            "//p[contains(text(),'invalid_labware.json. Invalid labware definition')]",
        ),
        "the error toast message after an invalid labware definition is uploaded",
    )
    return self.base.clickable_wrapper(header, 2)