Original link:
http://www.cnblogs.com/baixiaozheng/p/4950816.html
1, web commonly used method
driver.quit (); // close the browser to exit this driver, close all windows.
driver.close (); // close the tab to close the current window, if it is currently open windows, then exit the browser.
Reproduced in: https: //www.cnblogs.com/baixiaozheng/p/4950816.html