title: Python - Selenium can't handle alert
body: <p>I'm trying to automate a procedure on a really old IE-only webpage and, at one point, it raises an alert.</p>
  
  <p>I can't inspect it using IE (or don't know how) but there's only an "accept" button (actually an image) and the alert text can't be copied (not sure why).</p>
  
  <p>I'm using selenium with the IE drivers and i can't get past this alert. </p>
  
  <p>Selenium IS detecting the alert, but when i check its contents i get nothing.
  I've tried accepting the alert with</p>
  
  <pre><code>alert_obj = self.br.switch_to.alert
  alert_obj.accept()
  </code></pre>
  
  <p>and also </p>
  
  <pre><code>.dismiss();
  .send_key(Keys.ENTER)
  </code></pre>
  
  <p>and some other things. Am i missing something?</p>
  
  <p>photo of alert:</p>
  
  <p><a href="https://i.stack.imgur.com/NZpRF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NZpRF.png" alt="enter image description here"></a></p>