title: Wait for element present in Python
body: <p>I got a running code, but sometimes I get timeout in 30 seconds, sometimes in 80 or more (depends on server side), so the point is - how to make my code stop once I can view the element and not to wait until 120 seconds passed?
  Well, what I am trying to achieve is stop the code once the element is NOT PRESENTED on the screen:</p>
  
  <pre><code> def isElementPresent(self):
          try:
              wait = WebDriverWait(self.driver, 120)
              wait.until(EC.invisibility_of_element_located((By.NAME, 'GETTING NEW IMAGE FROM HOME SYSTEM')))
          except TimeoutException:
              print('Camera Timeout')
  </code></pre>