code: def waitVanish(self, pattern, seconds=None):
          
          r = self.clipRegionToScreen()
          if r is None:
              raise ValueError("Region outside all visible screens")
              return None
          if seconds is None:
              seconds = self.autoWaitTimeout
          if not isinstance(pattern, Pattern):
              if not isinstance(pattern, basestring):
                  raise TypeError("find expected a string [image path] or Pattern object")
              pattern = Pattern(pattern)
  
          needle = cv2.imread(pattern.path)
          match = True
          timeout = time.time() + seconds
  
          while match and time.time() < timeout:
              matcher = TemplateMatcher(r.getBitmap())
              # When needle disappears, matcher returns None
              match = matcher.findBestMatch(needle, pattern.similarity)
              time.sleep(1/self._defaultScanRate if self._defaultScanRate is not None else 1/Settings.WaitScanRate)
          if match:
              return False
docs: Waits until the specified pattern is not visible on screen.
  
          If ``seconds`` pass and the pattern is still visible, raises FindFailed exception.
          Sikuli supports OCR search with a text parameter. This does not (yet).