title: Why I don't close browser by webdriver?
body: <p>Could someone explain me why method in section @After don't close browser after test?</p>
  
  <pre><code>package TestCases;
  
  import junit.framework.Assert;
  import org.junit.After;
  import org.junit.Before;
  import org.junit.Test;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.ie.InternetExplorerDriver;
  
  public class ScriptCase {
  
      private WebDriver driver;
  
      @Before
      public void startWeb() {
          WebDriver driver = new InternetExplorerDriver();
  
          driver.navigate().to("https://play.google.com/store/apps/details?id=com.recursify.pixstack.free&amp;hl=en");
      }
  
      @After
      public void ShutdownWeb() {
          driver.close();
      }
  
      @Test
      public void startWebDriver(){
  
          Assert.assertTrue("Title is different from expected",
                  driver.getTitle().startsWith("PixStack Photo Editor Free"));
  
      }
  }
  </code></pre>
  
  <p>When I move code from @After directly in section @Test (to the end) my project closes browser successfully. Project is compiled good.</p>