title: Selenium is not able to handle pop up window or alert in python
body: <p>I want to get the text of the pop up window in the attached image. Right now I am using selenium in python for getting those text value. Following is my code- </p>
  
  <pre><code>time.sleep(LOADING_TIME)
  alert = driver.switch_to.alert
  print(alert.text())
  </code></pre>
  
  <p>But, when I am doing that I am getting following error - </p>
  
  <pre><code>selenium.common.exceptions.NoAlertPresentException: Message: no such alert
    (Session info: chrome=69.0.3497.81)
    (Driver info: chromedriver=2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db),platform=Mac OS X 10.13.6 x86_64)
  </code></pre>
  
  <p>Can anyone tell me what I am doing wrong? 
  Note that: I am using chrome driver for initializing selenium driver and the example I have added here can be found whenever you want to add an extension to your chrome browser.
  <a href="https://i.stack.imgur.com/LmICk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LmICk.png" alt="enter image description here"></a></p>