Clears the text if it's a text entry element.

def clear(self) -> None:
        """Clears the text if it's a text entry element."""
        self.click()
        for i in self.text:
            self._parent.send_keyevents(Keys.DEL)