title: Python + Selenium: Wait until element is fully loaded
body: <p>So I have been trying to play around with the function in Selenium that is called:</p>
  
  <pre><code>wait = WebDriverWait(browser, 20).wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="accountStandalone"]/div/div/div[2]/div/div/div[1]/button')))
  wait.click()
  </code></pre>
  
  <p>Before I'm starting to say the issue. What I'm trying to do a Selenium of is to basically make a Selenium that automatic write to the forumlar in this picture:</p>
  
  <p><a href="https://i.stack.imgur.com/zKHvU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zKHvU.png" alt="Pic1"></a> </p>
  
  <p>Which isn't any complications. However whenever I press "Skapa Konto", It loads and waits until a new page comes up which is:</p>
  
  <p><a href="https://i.stack.imgur.com/5q0dV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5q0dV.jpg" alt="Pic2"></a></p>
  
  <p>Which is the picture above. My idea is that what I wish is that it should wait until it gives me that "picture" (Which is the same link so it doesn't make any changes) so I assume better to do is to wait until a text etc "FORTSÄTT or HELLO" is the browser. Then continue.</p>
  
  <p>However, I'm having an issue when trying using this. The reason is that it doesn't wait until it found but goes instant and does other stuff which it shouldn't. Right now it just skips the wait like the function doesn't work or is there at all. What did I do for wrong?</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>What I know is that whenever I try to register on the website - The website doesn't change meaning it takes me to a new page when its been a successful account. But it does automatic refresh and saying its been successful. So meaning that somehow I want to make something in a way that it checks and sees if something new happened to the page. If not, Wait again and try again?... Something like that?</p>
  
  <p>What I would do is etc check if there is:</p>
  
  <pre><code>&lt;div class="confirmation-title nsg-font-family--platform nsg-text--black edf-title-font-size--xlarge js-confirmationTitle"&gt;NU ÄR DU MEDLEM, Hello.&lt;/div&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;button type="button" class="nsg-button nsg-bg--black register-next-step-cta js-nextStepCta"&gt;FORTSÄTT&lt;/button&gt;
  </code></pre>
  
  <p>However the problem is as I said, whenever I press "SKAPA KONTO" - It just waits for the server to double check and then automatic refreshes the page and says successful.</p>