title: Is there is any method in Selenium class to close the browser at the end of the Selenium Test?
body: <p>I am doing testing of my test cases through selenium-webdriver. I web app has some set operations like clicking,selecting etc,. i have used <code>selenium.click()</code> method. At the end of test i want to close the one popup window automatically. Is there is any method to close the popup window or browser in Selenium Class? Please help i am beginner to selenium webdriver testing. I have used selenium server 2.37.0 and the browser is IE.</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>namespace SeleniumTests
  {                
      // this is my test method        
      [TestMethod]
      public void TheJan6Test()
      {
          selenium = new DefaultSelenium("localhost", 4444, "*iexplore", "http://rcm-bpmt.apmoller.net");
          selenium.Start();
          verificationErrors = new StringBuilder();
          selenium.Open("workspace/faces/jsf/workspace/workspace.xhtml");
  
  
          // Here the steps regarding the automation of browser
          selenium.Type("id=portletComponentWorkList_viewNormalModeWorkList_viewPanel_conditionsTableSearch__OCID0__input", "198545");
          selenium.Click("id=portletComponentWorkList_viewNormalModeWorkList_viewPanel_searchWorkList");
          selenium.Click("id=portletComponentWorkList:viewNormalModeWorkList:viewPanel:instanceListTableWorkList:_OCID1_:executeLabel");
  
         //I want to close the popup after this step
         //At the end of test i want to close the one popup window automatically.Is there is any method to close the popup window or browser in Selenium Class
      }
  }
  </code></pre>
  
  <p>Please help me how to close the pop up at the end of test.</p>