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