title: Accepting an IE Webpage Dialog box with Selenium
body: <p>I'm trying to do automation for a webpage that only works in IE. I sign into the application and there is a "-- Webpage Dialog" box that appears and says PROD and has the option to click OK. It will not allow me to continue unless I click OK. I can't figure out how to accept that box. I can't inspect it. I've tried to turn on the url for pop ups but my company will not allow me to do so. It's frustrating because all I have to do is click ENTER and it works but the automation just can't send a send_keys(Keys.ENTER). I have also tried to switch windows but there is only one window. How can I accept this box using selenium?<a href="https://i.stack.imgur.com/8FXic.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8FXic.jpg" alt="enter image description here"></a></p>
  
  <p>I have tried driver.switch_to_alert().accept() or different variations. It doesn't do anything after that line has been executed. The program thinks it performed the execution but when in fact it didn't.</p>