title: Python - Selenium Stale exception
body: <p>I am trying to automate Microsoft login page. However when I try to click the sIgn in button no error occurs but the button does not get clicked.</p>
  <p>Language used - Python</p>
  <p>Below is my code is</p>
  <pre><code>from selenium import webdriver
  driver=webdriver.chrome()
  url=https://login.microsoftonline.com/
  driver.get(url)
  button=driver.find.element_by_xpath('//*[@id=&quot;idSIButton9&quot;])
  username=driver.find.element_by_id(&quot;i0116&quot;)
  username.clear()
  username..sendkeys(zyz@gmail.com)
  button.click()
  password =driver.find.element_by_id(&quot;i0118&quot;)
  password.clear()
  password.sendkeys(zyzass)
  try:
     button.click()
  expect StaleElementReferenceException:
     print(&quot;loggedin&quot;)
  </code></pre>
  <p>Expected Result -
  1.Login to <a href="https://login.microsoftonline.com/" rel="nofollow noreferrer">https://login.microsoftonline.com/</a>
  2.enter username
  3.Click on Next button
  4.enter password
  5.click on  Sign in</p>
  <p>Actual Result -
  1.Login to <a href="https://login.microsoftonline.com/" rel="nofollow noreferrer">https://login.microsoftonline.com/</a>
  2.enter username
  3.Click on Next button
  4.enter password
  5.<strong>click does not work</strong></p>
  <p>There is no error when code is run.</p>