title: Ruby Selenium Automated Test Alert Window
body: <p>I'm running an automated test on Ruby/Cucumber with Selenium Webdriver on Chrome and trying to delete an object, but every time I do so, an alert window pops up and asks me to confirm. the window has the buttons "ok" and "cancel". How can I click on "ok" automated?</p>
  
  <h2>Update from comments</h2>
  
  <p>Error stack trace:</p>
  
  <pre><code>unexpected alert open: {Alert text : Möchten Sie den Benutzer test@test.de wirklich löschen?} (Session info: chrome=68.0.3440.106) 
   (Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 6.1.7601 SP1 x86_64) 
   (Selenium::WebDriver::Error::UnhandledAlertError)
  </code></pre>