title: Python Selenium: keep on clicking RUN button untill 'working' message appear
body: <p>I want to keep on clicking RUN button every after 1sec until 'working' message appears. Please advise if below code is correct:</p>
  <pre><code>#Hit Run
  RUN = driver.find_elements_by_xpath(&quot;//button[@type='button']&quot;)[1]
  time.sleep (5)
  while True:
      try:
          RUN.click()
          WebDriverWait(driver, 1).until(EC.presence_of_element_located((By.ID,&quot;_NS__workingMsg&quot;)))
      except TimeoutException:
          break  
  </code></pre>