title: Expected condition: wait until one element clickable while other- dissapeared
body: <p>I face the following issue: there is a page (unfortunately it's not public) with a <code>Register request</code> and a <code>Approve request</code> button. Clicking on a button leads to opening a transparent <code>div</code> with a pop-up. </p>
  
  <p>Algorithm is as following: 
  1) Click <code>Register</code>; 
  2) Fill form in raised pop-up; 
  3) Click <code>Submit</code> to confirm registration (to close pop-up);
  4) Click <code>Approve</code></p>
  
  <p>So I use the following code:</p>
  
  <pre><code>WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//button[@id="RegisterButton"]'))).click()
  # ...Filling Register form...
  WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//button[@id="SubmitButton"]'))).click()
  WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, '//button[@id="ApproveButton"]'))).click()
  </code></pre>
  
  <p>But despite using <code>EC.element_to_be_clickable()</code> I get the following error:</p>
  
  <pre><code> WebDriverException: Message: unknown error: 
   Element is not clickable at point (338, 167). 
   Other element would receive the click: &lt;div class="modal fade" id="confirmWindow" style="display: block;"&gt;...&lt;/div&gt;
  </code></pre>
  
  <p>Seems that the driver considers <code>Approve</code> being already clickable and tries to click on it while the transparent <code>div</code> is still displayed.</p>
  
  <p>So I need an <code>Expected Conditions</code> statement to catch the state when the <code>div</code> is already selected and <code>Approve</code> if the button is clickable </p>
  
  <p>P.S. I'm using <code>time.sleep()</code> to do this, but seems to be a rough approach</p>
  
  <p><strong>UPDATED</strong></p>
  
  <p>I try to use <code>JavaScript</code>:</p>
  
  <pre><code>driver.execute_script('document.getElementById("ApproveButton").click();')
  </code></pre>
  
  <p>and so far it works... I wonder if it really a better way to click on button or there could be some obstacles also?</p>