O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Other important points

You will notice that in the tearDown() we call quit(). We call quit() because this call cleans up all of the resources that WebDriver starts up and uses. If you were to call close() it will only close the window that Selenium WebDriver is currently on. On some implementations of the server-side, or browser code, when we close() and it is the last window open then the server-side code will act as though quit() was called.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required