code: def wait_until_element_not_visible(self, element, timeout=None):
          
          return self._wait_until(self._expected_condition_find_element_not_visible, element, timeout)
docs: Search element and wait until it is not visible
  
          :param element: PageElement or element locator as a tuple (locator_type, locator_value) to be found
          :param timeout: max time to wait
          :returns: the web element if it exists but is not visible
          :rtype: selenium.webdriver.remote.webelement.WebElement or appium.webdriver.webelement.WebElement
          :raises TimeoutException: If the element is still visible after the timeout