(self, timeout=None, raise_error=True)
Args:
            timeout (float): default timeout
            raise_error (bool): return bool or raise error

        Returns:
            bool: works when raise_error is False

        Raises:
            WDAElementNotDisappearError
Args:
            timeout (float): default timeout
            raise_error (bool): return bool or raise error
Args : timeout ( float ) : default timeout raise_error ( bool ) : return bool or raise error
def wait_gone(self, timeout=None, raise_error=True):
        """
        Args:
            timeout (float): default timeout
            raise_error (bool): return bool or raise error

        Returns:
            bool: works when raise_error is False

        Raises:
            WDAElementNotDisappearError
        """
        start_time = time.time()
        if timeout is None or timeout <= 0:
            timeout = self._timeout
        while start_time + timeout > time.time():
            if not self.exists:
                return True
        if not raise_error:
            return False
        raise WDAElementNotDisappearError("element not gone")
def wait_gone ( self , timeout = None , raise_error = True ) : start_time = time . time ( ) if timeout is None or timeout <= 0 : timeout = self . _timeout while start_time + timeout > time . time ( ) : if not self . exists : return True if not raise_error : return False raise WDAElementNotDisappearError ( "element not gone" )