title: Cucumber feature for twitter bootstrap modal
body: <p>I'm writing a cucumber feature were I want to delete a category, but before I delete it I show a modal screen to ask the user for his conformation.</p>
  
  <p>I'm using twitter bootstrap and use the javscript modals they provide.</p>
  
  <p>But I'm stuck, so could anybody help in the right direct on how I could test this.
  This is my feature so far:</p>
  
  <pre><code>  Scenario: Delete category with articles
     Given I am logged in as an admin
     And I have category titled Paints
     When I go to the list of categories
     And I push delete button for the Paints category
     Then I should get a popup to confirm
  </code></pre>
  
  <p>I already implemented the necessary steps for the feature accepts the last one of course.
  But I don't have a clue how to start:</p>
  
  <p>I read something about page.driver.browser.switch_to.alert but don't now if that can work.</p>
  
  <p>Does anybody have some advice ?</p>
  
  <p>Thanks a lot.</p>